| | |
| | | |
| | | <select id="baseInfo" resultType="com.panzhihua.common.model.vos.community.bigscreen.BaseInfo"> |
| | | select count(id) as population, |
| | | IFNULL((select count(id) from com_mng_population_house where community_id = ${communityId}),0) as house, |
| | | IFNULL((select count(id) from com_mng_real_company where community_id = ${communityId}),0) as company, |
| | | IFNULL((select count(DISTINCT `name`) from com_mng_village where community_id = ${communityId}),0) as village, |
| | | IFNULL((select count(user_id) from sys_user where community_id = ${communityId} and type=1),0) as user, |
| | | IFNULL((select count(id) from com_pb_member where community_id = ${communityId} and audit_result =1 ),0) as partyMember, |
| | | IFNULL((select count(id) from com_mng_volunteer_mng where community_id = ${communityId} and state=2 ),0) as volunteer, |
| | | IFNULL((select count(id) from com_pb_org where community_id = ${communityId} and parent_id = 0),0) as partyOrg |
| | | IFNULL((select count(id) from com_mng_population_house where community_id = ${communityId}),0) as house, |
| | | IFNULL((select count(id) from com_mng_real_company where community_id = ${communityId}),0) as company, |
| | | IFNULL((select count(DISTINCT `name`) from com_mng_village where community_id = ${communityId}),0) as village, |
| | | IFNULL((select count(user_id) from sys_user where community_id = ${communityId} and type=1),0) as user, |
| | | IFNULL((select count(id) from com_pb_member where community_id = ${communityId} and audit_result =1 ),0) as partyMember, |
| | | IFNULL((select count(id) from com_mng_volunteer_mng where community_id = ${communityId} and state=2 ),0) as volunteer, |
| | | IFNULL((select count(id) from com_pb_org where community_id = ${communityId} and parent_id = 0),0) as partyOrg, |
| | | IFNULL((select count(id) from com_act_dpc where community_id = ${communityId} AND is_del = 0),0) as dpcNum |
| | | from com_mng_population_community_tags AS cmpct |
| | | where cmpct.community_id = ${communityId} |
| | | </select> |