| | |
| | | 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> |
| | | |
| | | <!--查询商超--> |
| | |
| | | |
| | | <!--查询所有的地址表和场所表差集集合(小区和非小区的)--> |
| | | <select id="getPlaceList" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select jda.* from jczz_doorplate_address jda |
| | | left join jczz_place jp on jp.house_code = jda.address_code and jp.is_deleted =0 |
| | | where 1=1 |
| | | and jp.house_code is null |
| | | and (doorplate_type = '小门牌' or (doorplate_type = '中门牌' and address_level = 1)) |
| | | select |
| | | min(jda.id) |
| | | from jczz_doorplate_address jda |
| | | left join jczz_district jd on jda.aoi_code = jd.aoi_code |
| | | where jda.aoi_code != "" and jda.aoi_name !="" and jd.id is null |
| | | and (doorplate_type = '大门牌' or doorplate_type = '楼幢牌' or doorplate_type = '中门牌' or doorplate_type = '单元牌') |
| | | GROUP BY jda.aoi_code |
| | | union all |
| | | ( |
| | | select jda.* from jczz_doorplate_address jda |
| | | left join jczz_place jp on jp.house_code = jda.address_code and jp.is_deleted =0 |
| | | where 1=1 |
| | | and jp.house_code is null |
| | | and aoi_code is null |
| | | and doorplate_type='中门牌' |
| | | select |
| | | min(jda.id) |
| | | from jczz_doorplate_address jda |
| | | left join jczz_district jd on jda.aoi_code = jd.aoi_code |
| | | where jda.aoi_code != "" and jda.sub_aoi != "" |
| | | and (doorplate_type = '大门牌' or doorplate_type = '楼幢牌' or doorplate_type = '中门牌') |
| | | group by jda.aoi_code |
| | | ) |
| | | </select> |
| | | </mapper> |