| | |
| | | |
| | | |
| | | <!--查询区域数据-街道--> |
| | | <select id="getRegionListByGrouyTwon" resultType="org.springblade.common.node.TreeNode" > |
| | | select town_street_name as name from jczz_doorplate_address group by town_street_name |
| | | <select id="getRegionListByGroupTwon" resultType="org.springblade.common.node.TreeNode" > |
| | | select town_street_code as id,town_street_name as name from jczz_doorplate_address group by town_street_code,town_street_name |
| | | </select> |
| | | |
| | | <!--查询区域数据-社区--> |
| | | <select id="getRegionListByGrouyNei" resultType="org.springblade.common.node.TreeNode" > |
| | | select nei_name as name from jczz_doorplate_address group by nei_name |
| | | <select id="getRegionListByGroupNei" resultType="org.springblade.common.node.TreeNode" > |
| | | select nei_code as id,nei_name as name from jczz_doorplate_address group by nei_code,nei_name |
| | | </select> |
| | | |
| | | <!--根据社区名称查询小区集合--> |
| | | <select id="getDistrictList" resultType="org.springblade.common.node.TreeNode" > |
| | | select district_code as id,district_name as name from jczz_doorplate_address |
| | | select aoi_code as id,aoi_name as name from jczz_doorplate_address |
| | | where 1=1 |
| | | and nei_name = #{name} |
| | | and district_name !='' |
| | | and district_code !='' |
| | | group by district_code,district_name |
| | | and aoi_name !='' |
| | | and aoi_code !='' |
| | | group by aoi_code,aoi_name |
| | | </select> |
| | | |
| | | <!--根据社区名称查询楼栋集合--> |
| | | <select id="getBuildingList" resultType="org.springblade.common.node.TreeNode" > |
| | | select building_code as id,building_name as name from jczz_doorplate_address |
| | | where 1=1 |
| | | and district_code = #{code} |
| | | and aoi_code = #{code} |
| | | and building_code !='' |
| | | and building_name !='' |
| | | group by building_code,building_name |
| | |
| | | select * from jczz_doorplate_address where address_code = #{code} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="getTownStreetVOTreeList" |
| | | resultType="org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree"> |
| | | SELECT town_street_code as code,town_street_name as name FROM jczz_doorplate_address group by town_street_code , town_street_name |
| | | </select> |
| | | |
| | | <select id="getNeiVOTreeList" resultType="org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree"> |
| | | SELECT nei_code as code,nei_name as name FROM jczz_doorplate_address WHERE town_street_code =#{code} GROUP BY nei_code,nei_name |
| | | </select> |
| | | <select id="getStreetRuVOTreeList" |
| | | resultType="org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree"> |
| | | SELECT street_ru_code as code,street_ru_name as name |
| | | FROM jczz_doorplate_address |
| | | WHERE nei_code =#{code} |
| | | and street_ru_code is not null and street_ru_code !='' |
| | | and street_ru_name is not null and street_ru_name !='' |
| | | GROUP BY street_ru_code,street_ru_name |
| | | |
| | | </select> |
| | | <select id="getDistrictVOTreeList" |
| | | resultType="org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree"> |
| | | SELECT district_code as code,district_name as name |
| | | FROM jczz_doorplate_address |
| | | WHERE street_ru_code =#{code} |
| | | and district_code is not null and district_code !='' |
| | | and district_name is not null and district_name !='' |
| | | GROUP BY district_code,district_name |
| | | </select> |
| | | <select id="getBuildingVOTreeList" |
| | | resultType="org.springblade.modules.doorplateAddress.vo.DoorplateAddressVOTree"> |
| | | SELECT building_code as code,building_name as name |
| | | FROM jczz_doorplate_address |
| | | WHERE district_code =#{code} |
| | | and building_code is not null and building_code !='' |
| | | and building_name is not null and building_name !='' |
| | | GROUP BY building_code,building_name |
| | | </select> |
| | | |
| | | </mapper> |