| | |
| | | <!-- </select>--> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="getUserLabelList" resultType="java.lang.Integer" parameterType="org.springblade.modules.house.dto.UserHouseLabelDTO"> |
| | | <select id="getUserLabelList" resultType="java.lang.Integer" |
| | | parameterType="org.springblade.modules.house.dto.UserHouseLabelDTO"> |
| | | select label_id |
| | | from jczz_user_house_label |
| | | <where> |
| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="statisticalLabels" resultType="org.springblade.modules.house.vo.HouseholdLabelVO" |
| | | parameterType="org.springblade.modules.house.vo.HouseholdLabelVO"> |
| | | SELECT |
| | | br.region_level, |
| | | br.NAME regionName, |
| | | jc.`street_code`, |
| | | jc.NAME communityName, |
| | | jc.code communityCode, |
| | | ( |
| | | SELECT |
| | | count( 1 ) |
| | | FROM |
| | | jczz_user_house_label juhl |
| | | LEFT JOIN jczz_label jl ON juhl.label_id = jl.id |
| | | WHERE |
| | | juhl.lable_type = 1 |
| | | AND jl.parent_id = '103' |
| | | AND juhl.household_id IS NOT NULL |
| | | AND juhl.house_code IN ( |
| | | SELECT |
| | | jgr.house_code |
| | | FROM |
| | | jczz_grid jg |
| | | LEFT JOIN jczz_grid_range jgr ON jgr.grid_id = jg.id |
| | | WHERE |
| | | jc.`code` = jg.community_code |
| | | )) numbers |
| | | FROM |
| | | jczz_community jc |
| | | LEFT JOIN `blade_region` br ON br.`code` = jc.`street_code` |
| | | WHERE |
| | | jc.street_code IS NOT NULL |
| | | </select> |
| | | |
| | | |
| | | </mapper> |