| | |
| | | |
| | | <!--查询所有户室数据--> |
| | | <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 |