zxc 4 years ago
parent
commit
49cde60fb0
  1. 12
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java
  2. 4
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcHouseDao.xml

12
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/HouseServiceImpl.java

@ -361,7 +361,9 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
}
});
}
icNeighborHoodDao.deleteBatchIds(ids);
if (!CollectionUtils.isEmpty(ids)){
icNeighborHoodDao.deleteBatchIds(ids);
}
if (!CollectionUtils.isEmpty(exists)){
String collect = exists.stream().map(m -> m.getName()).collect(Collectors.joining("、"));
EpmetErrorCode.NEIGHBORHOOD_DEL_FAILED.setMsg(String.format(EpmetErrorCode.NEIGHBORHOOD_DEL_FAILED.getMsg(),collect));
@ -379,7 +381,9 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
}
});
}
icBuildingDao.deleteBatchIds(ids);
if (!CollectionUtils.isEmpty(ids)){
icBuildingDao.deleteBatchIds(ids);
}
if (!CollectionUtils.isEmpty(exists)){
String collect = exists.stream().map(m -> m.getName()).collect(Collectors.joining("、"));
EpmetErrorCode.BUILDING_DEL_FAILED.setMsg(String.format(EpmetErrorCode.BUILDING_DEL_FAILED.getMsg(),collect));
@ -401,7 +405,9 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver {
}
});
}
icHouseDao.deleteBatchIds(ids);
if (!CollectionUtils.isEmpty(ids)){
icHouseDao.deleteBatchIds(ids);
}
if (!CollectionUtils.isEmpty(exists)){
List<String> list = icHouseDao.selectHouseNames(exists);
String collect = list.stream().collect(Collectors.joining("、"));

4
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcHouseDao.xml

@ -343,7 +343,7 @@
#{id}
</foreach>
)
GROUP BY id
GROUP BY nh.id
</select>
<!-- 根据楼栋IDs查询楼栋下是否有存在房屋的 -->
@ -359,7 +359,7 @@
#{id}
</foreach>
)
GROUP BY id
GROUP BY b.id
</select>
<!-- 根据房屋ID查询名字 -->

Loading…
Cancel
Save