|
@@ -261,7 +261,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
|
261
|
261
|
//插入户型图片
|
262
|
262
|
for (BuildingImg img:buildingImgs){
|
263
|
263
|
BuildingImg Images = new BuildingImg();
|
264
|
|
- Images.setImgId(img.getBuildingId());
|
|
264
|
+ Images.setImgId(idGen.nextId() + "");
|
265
|
265
|
Images.setBuildingId(building.getBuildingId());
|
266
|
266
|
Images.setImgType(img.getImgType());
|
267
|
267
|
Images.setUrl(img.getUrl());
|
|
@@ -277,6 +277,9 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
|
277
|
277
|
apartmentImgMapper.insert(apartmentImg);
|
278
|
278
|
|
279
|
279
|
}
|
|
280
|
+
|
|
281
|
+ building.setCreateDate(LocalDateTime.now());
|
|
282
|
+ building.setApartmentId(idGen.nextId() + "");
|
280
|
283
|
buildingApartmentMapper.insert(building);
|
281
|
284
|
responseBean.addSuccess("成功");
|
282
|
285
|
return responseBean;
|