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