Browse Source

building

feature/teamB_zz_wgh
zxc 3 years ago
parent
commit
a3fd5d51c2
  1. 1
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcNeighborHoodServiceImpl.java
  2. 8
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcBuildingDao.xml

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

@ -604,6 +604,7 @@ public class IcNeighborHoodServiceImpl extends BaseServiceImpl<IcNeighborHoodDao
* 单元数可以修改变小先去校验,单元下存在房屋就报错不存在删除对应单元更新楼栋单元数
* 校验规则单元号倒序校验原来的单元数 - 现在单元数个单元下是不是存在房屋存在房屋不能更新
*/
info.setBuildingId(building.getId());
Integer size = building.getTotalUnitNum() - info.getTotalUnitNum();
List<String> ids = icBuildingUnitDao.getUnitIdByBuildingId(building.getId(), size);
if (!org.springframework.util.CollectionUtils.isEmpty(ids)){

8
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcBuildingDao.xml

@ -48,10 +48,18 @@
SET TOTAL_UNIT_NUM = #{totalUnitNum},
TOTAL_FLOOR_NUM = #{totalFloorNum},
TOTAL_HOUSE_NUM = #{totalHouseNum},
<if test="buildingLeaderName != null and buildingLeaderName != '' ">
BUILDING_LEADER_NAME = #{buildingLeaderName},
</if>
<if test="buildingLeaderMobile != null and buildingLeaderMobile != '' ">
BUILDING_LEADER_MOBILE = #{buildingLeaderMobile},
</if>
<if test="sort != null">
SORT = #{sort},
</if>
<if test="type != null and type != ''">
TYPE = #{type},
</if>
UPDATED_TIME = NOW()
WHERE ID = #{buildingId}
</update>

Loading…
Cancel
Save