| | |
| | | where 1=1 |
| | | and jh.house_code is null |
| | | and doorplate_type = '户室牌' |
| | | <if test="townName!=null and townName!=''"> |
| | | and jda.town_street_name like concat('%',#{townName},'%') |
| | | </if> |
| | | limit 0,1000 |
| | | </select> |
| | | |
| | | <!--查询商超--> |
| | |
| | | <!--查询所有的地址表id集合--> |
| | | <select id="getAoiCodeList" resultType="java.lang.Long"> |
| | | select |
| | | max(id) |
| | | min(id) |
| | | from jczz_doorplate_address |
| | | where aoi_code != "" and aoi_name !="" |
| | | and doorplate_type = '大门牌' |
| | | GROUP BY aoi_code |
| | | union all |
| | | ( |
| | | select |
| | | max(id) |
| | | min(id) |
| | | from jczz_doorplate_address |
| | | where aoi_code != "" and sub_aoi != "" |
| | | and doorplate_type = '大门牌' |
| | | group by aoi_code |
| | | ) |
| | | </select> |
| | |
| | | and jda.building_code is not null |
| | | |
| | | </select> |
| | | |
| | | |
| | | <!--查询所有户室数据--> |
| | | <select id="getNotHouseListCount" resultType="java.lang.Integer"> |
| | | select count(*) 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 = '户室牌' |
| | | <if test="townName!=null and townName!=''"> |
| | | and jda.town_street_name like concat('%',#{townName},'%') |
| | | </if> |
| | | limit 0,1000 |
| | | </select> |
| | | </mapper> |