| | |
| | | |
| | | <!--查询社区信息--> |
| | | <select id="getAllDoorplateAddress" resultType="org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity"> |
| | | select * from jczz_doorplate_address |
| | | where 1=1 |
| | | <if test="name!=null and name!=''"> |
| | | and nei_name = #{name} |
| | | select |
| | | jda.id, |
| | | jda.address_code, |
| | | jda.aoi_code, |
| | | jda.aoi_name, |
| | | jda.x, |
| | | jda.y |
| | | from jczz_doorplate_address jda |
| | | left join jczz_grid_range jgr on jda.address_code = jgr.house_code |
| | | where 1=1 and jgr.id is null |
| | | <if test="doorplateAddressEntity.neiName!=null and doorplateAddressEntity.neiName!=''"> |
| | | and jda.nei_name = #{doorplateAddressEntity.neiName} |
| | | </if> |
| | | <if test="doorplateAddressEntity.townStreetName!=null and doorplateAddressEntity.townStreetName!=''"> |
| | | and jda.town_street_name = #{doorplateAddressEntity.townStreetName} |
| | | </if> |
| | | </select> |
| | | |