|
|
@ -596,6 +596,7 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao |
|
|
|
IcBuildingDTO building = icBuildingService.getBuildingInfo(info.getNeighborHoodId(), info.getBuildingName()); |
|
|
|
if (null != building) { |
|
|
|
info.setBuildingExistStatus(true); |
|
|
|
if (info.getBuildingUpdateStatus()){ |
|
|
|
if (info.getTotalUnitNum() < building.getTotalUnitNum()){ |
|
|
|
info.setBuildingUnitNumStatus(true); |
|
|
|
}else { |
|
|
@ -619,6 +620,7 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao |
|
|
|
} |
|
|
|
icBuildingUnitService.insertBatch(unitList, NumConstant.ONE_HUNDRED); |
|
|
|
} |
|
|
|
} |
|
|
|
return building.getId(); |
|
|
|
} |
|
|
|
IcBuildingEntity buildingEntity = new IcBuildingEntity(); |
|
|
|