|
@@ -267,7 +267,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
|
267
|
267
|
buildingApartmentMapper.insert(building);
|
268
|
268
|
for (BuildingImg img:buildingImgs){
|
269
|
269
|
BuildingImg Images = new BuildingImg();
|
270
|
|
- Images.setImgId(building.getBuildingId());
|
|
270
|
+ Images.setImgId(idGen.nextId() + "");
|
271
|
271
|
Images.setBuildingId(building.getBuildingId());
|
272
|
272
|
Images.setImgType(img.getImgType());
|
273
|
273
|
Images.setUrl(img.getUrl());
|
|
@@ -312,7 +312,7 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
|
312
|
312
|
|
313
|
313
|
for (BuildingImg img:buildingImgs){
|
314
|
314
|
BuildingImg Images = new BuildingImg();
|
315
|
|
- Images.setImgId(img.getBuildingId());
|
|
315
|
+ Images.setImgId(idGen.nextId() + "");
|
316
|
316
|
Images.setBuildingId(building.getBuildingId());
|
317
|
317
|
Images.setImgType(img.getImgType());
|
318
|
318
|
Images.setUrl(img.getUrl());
|