| | |
| | | and street_ru_code = #{houseParam.code} |
| | | and nei_code = #{houseParam.name} |
| | | and aoi_code is null |
| | | and doorplate_type = '中门牌' |
| | | <include refid="filterHouseGrid"/> |
| | | order by doorplate_num,sub_door_plate_no |
| | | </select> |
| | |
| | | |
| | | <!--查询社区信息--> |
| | | <select id="getAllDoorplateAddress" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select * from jczz_doorplate_address where nei_name = #{name} |
| | | select * from jczz_doorplate_address |
| | | where 1=1 |
| | | <if test="name!=null and name!=''"> |
| | | and nei_name = #{name} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--获取房屋树--> |
| | |
| | | |
| | | <!--查询所有户室数据--> |
| | | <select id="getHouseList" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select * from jczz_doorplate_address |
| | | where 1=1 and doorplate_type = '户室牌' |
| | | and address_code not in ( |
| | | select house_code from jczz_house |
| | | ) |
| | | select jda.* from jczz_doorplate_address jda |
| | | left join jczz_house jh on jh.house_code = jda.address_code |
| | | where 1=1 |
| | | and jh.house_code is null |
| | | and doorplate_type = '户室牌' |
| | | </select> |
| | | |
| | | <!--查询商超--> |
| | |
| | | where 1=1 |
| | | and jp.house_code is null |
| | | and (doorplate_type = '小门牌' or (doorplate_type = '中门牌' and address_level = 1)) |
| | | union all |
| | | union |
| | | ( |
| | | select jda.* from jczz_doorplate_address jda |
| | | left join jczz_place jp on jp.house_code = jda.address_code and jp.is_deleted =0 |