| | |
| | | select nei_name as name from jczz_doorplate_address group by 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 |
| | | where 1=1 |
| | | and nei_name = #{name} |
| | | and district_name !='' |
| | | and district_code !='' |
| | | group by district_code,district_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 building_code !='' |
| | | and building_name !='' |
| | | group by building_code,building_name |
| | | order by building_name |
| | | </select> |
| | | |
| | | <!--查询户室及住户相关信息,单元中包含住户--> |
| | | <select id="getUnitHouseholdList" resultType="org.springblade.modules.doorplateAddress.vo.FuncNode" > |
| | | select |
| | | jda.unit_code unitCode,jda.floor,jda.house_name as houseNo,jda.address_code addressCode, |
| | | jh.name as realName,jh.role_type as roleType |
| | | from jczz_doorplate_address jda |
| | | left join |
| | | (select house_code,name,role_type from jczz_household where role_type = '业主') jh |
| | | on jda.address_code = jh.house_code |
| | | where 1=1 and floor != '' and house_name != '' |
| | | and building_code = #{code} |
| | | </select> |
| | | |
| | | </mapper> |