| | |
| | | |
| | | |
| | | <!--查询区域数据-街道--> |
| | | <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 |