| | |
| | | <!--查询所有的地址表和场所表差集集合(小区和非小区的)--> |
| | | <select id="getNotInPlaceList" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select jda.* from jczz_doorplate_address jda |
| | | left join jczz_place jp on locate(jda.address_code,jp.house_code)>0 and jp.is_deleted = 0 |
| | | left join jczz_place jp on jda.address_code=jp.house_code and jp.is_deleted = 0 |
| | | where 1=1 |
| | | and (doorplate_type = '小门牌' or (doorplate_type = '中门牌' and address_level = 1)) |
| | | and jp.id is null |
| | | and jda.poi != '' |
| | | <if test="doorplateAddress.townStreetName!=null and doorplateAddress.townStreetName!=''"> |
| | | and jda.town_street_name like concat('%',#{doorplateAddress.townStreetName},'%') |
| | | <if test="townName!=null and townName!=''"> |
| | | and jda.town_street_name like concat('%',#{townName},'%') |
| | | </if> |
| | | </select> |
| | | |