| | |
| | | LEFT JOIN com_act AS ca10 ON ca10.community_id = cmpct10.community_id |
| | | LEFT JOIN com_street AS cs10 ON cs10.street_id = ca10.street_id |
| | | WHERE |
| | | cmpct10.label LIKE '%刑释人员%' and ca10.area_code = '510423' and ca10.is_screen_statistics = 1 |
| | | cmpct10.label LIKE '%刑满释放%' and ca10.area_code = '510423' and ca10.is_screen_statistics = 1 |
| | | <if test="streetId != null and streetId != 0"> |
| | | and cs10.street_id = #{streetId} |
| | | </if> |
| | |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','社区矫正','%')) as correctTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','精神障碍患者','%')) as majorTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','邪教人员','%')) as cultTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','刑释人员','%')) as rehabilitationTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','刑满释放','%')) as rehabilitationTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','重点人员','%')) as keyTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','退役军人','%')) as veteransTotal , |
| | | (select count(id) from com_mng_population_community_tags where community_id = ${communityId} and label LIKE CONCAT('%','残疾人','%')) as disabilityTotal , |