| | |
| | | </if> |
| | | limit 0,1000 |
| | | </select> |
| | | |
| | | <!--查询网格范围表未绑定的地址表信息数量--> |
| | | <select id="getNotBindGridRangeDoorListCount" resultType="java.lang.Integer"> |
| | | select count(*) from jczz_doorplate_address jda |
| | | left join jczz_grid_range jgr on jgr.house_code = jda.address_code |
| | | where 1=1 |
| | | and jgr.house_code is null |
| | | <if test="townName!=null and townName!=''"> |
| | | and jda.town_street_name like concat('%',#{townName},'%') |
| | | </if> |
| | | <if test="communityName!=null and communityName!=''"> |
| | | and jda.nei_name like concat('%',#{communityName},'%') |
| | | </if> |
| | | limit 0,1000 |
| | | </select> |
| | | |
| | | <!--查询所有未匹配的网格范围地址数据--> |
| | | <select id="getNotBindGridRangeDoorList" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select |
| | | jda.address_code, |
| | | jda.aoi_code, |
| | | jda.building_code, |
| | | jda.x, |
| | | jda.y |
| | | from jczz_doorplate_address jda |
| | | left join jczz_grid_range jgr on jgr.house_code = jda.address_code |
| | | where 1=1 |
| | | and jgr.house_code is null |
| | | <if test="townName!=null and townName!=''"> |
| | | and jda.town_street_name like concat('%',#{townName},'%') |
| | | </if> |
| | | <if test="communityName!=null and communityName!=''"> |
| | | and jda.nei_name like concat('%',#{communityName},'%') |
| | | </if> |
| | | limit 0,1000 |
| | | </select> |
| | | </mapper> |