| | |
| | | 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_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> |