Browse Source

获取小区,楼栋,单元ID

master
zhaoqifeng 4 years ago
parent
commit
12248915d1
  1. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcNeighborHoodServiceImpl.java

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcNeighborHoodServiceImpl.java

@ -464,6 +464,7 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao
wrapper.eq(IcNeighborHoodEntity::getNeighborHoodName, info.getNeighborHoodName());
IcNeighborHoodEntity entity = baseDao.selectOne(wrapper);
if (null != entity) {
info.setNeighborHoodExistStatus(true);
return entity.getId();
}
entity = new IcNeighborHoodEntity();
@ -489,6 +490,7 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao
//根据小区ID和楼栋名获取楼栋信息
IcBuildingDTO building = icBuildingService.getBuildingInfo(info.getNeighborHoodId(), info.getBuildingName());
if (null != building) {
info.setBuildingExistStatus(true);
return building.getId();
}
IcBuildingEntity buildingEntity = new IcBuildingEntity();

Loading…
Cancel
Save