| | |
| | | ) as tyTotal, |
| | | ( |
| | | SELECT |
| | | count( cmpct6.id ) |
| | | FROM |
| | | com_mng_population_community_tags AS cmpct6 |
| | | LEFT JOIN com_act AS ca6 ON ca6.community_id = cmpct6.community_id |
| | | LEFT JOIN com_street AS cs6 ON cs6.street_id = ca6.street_id |
| | | left join com_mng_population as cmp6 on cmp6.id = cmpct6.population_id |
| | | WHERE |
| | | cmpct6.label LIKE '%养老金人员%' and ca6.area_code = '510423' and ca6.is_screen_statistics = 1 |
| | | <if test="streetId != null and streetId != 0"> |
| | | and cs6.street_id = #{streetId} |
| | | </if> |
| | | AND cmp6.death = 0 |
| | | ) as txTotal, |
| | | ( |
| | | SELECT |
| | | count( cmpct7.id ) |
| | | FROM |
| | | com_mng_population_community_tags AS cmpct7 |