| | |
| | | + "AND cmp.unit_no = #{comMngPopulationVO.unitNo} " + " </if> " |
| | | + "<if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'>" |
| | | + "AND cmp.house_no = #{comMngPopulationVO.houseNo} " + " </if> " |
| | | + "<if test='comMngPopulationVO.isDeath != null'>" |
| | | + "AND cmp.death = #{comMngPopulationVO.isDeath} " + " </if> " |
| | | + "<if test='comMngPopulationVO.sex != null and comMngPopulationVO.sex != ""'>" |
| | | + "AND cmp.sex = #{comMngPopulationVO.sex} " + " </if> " |
| | | + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageStartTime != "" and comMngPopulationVO.ageEndTime == null'>" |
| | |
| | | */ |
| | | IPage<InputUserInfoVO> specialInputUser(Page page, @Param("pageInputUserDTO") PageInputUserDTO pageInputUserDTO); |
| | | |
| | | /** |
| | | * |
| | | * @param pageInputUserDTO |
| | | * @return |
| | | */ |
| | | List<InputUserInfoVO> specialInputUserExport(@Param("pageInputUserDTO") PageInputUserDTO pageInputUserDTO); |
| | | |
| | | @Select("<script> " |
| | | + "select id,tag_name,community_id,create_at,sys_flag from com_mng_user_tag <where> " |
| | | + "<if test='comMngUserTagDTO.tagName != null and comMngUserTagDTO.tagName != ""'>" |
| | |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and cmp.out_or_local = 1) as localTotal " |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and cmp.out_or_local = 2) as outTotal " |
| | | + ",(select count(cmpct.id) from com_mng_population_community_tags cmpct left join com_mng_population cmp on cmpct.population_id = cmp.id where cmpct.community_id = #{communityId} and cmpct.label is not null) as specialTotal " |
| | | + ",(select count(village_id) from com_mng_village where community_id = #{communityId}) as villageTotal " |
| | | + ",(select count(DISTINCT `name`) from com_mng_village where community_id = #{communityId}) as villageTotal " |
| | | + ",(select count(id) from com_mng_population_community_tags where community_id = #{communityId} and label LIKE CONCAT('%','吸毒人员','%')) as drugTotal " |
| | | + ",(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("select count(id) as populationTotal," + |
| | | "IFNULL((select count(id) from com_mng_population_house where community_id = cmpct.community_id),0) as houseTotal, " + |
| | | "IFNULL((select count(id) from com_mng_real_company where community_id = cmpct.community_id),0) as companyTotal, " + |
| | | "IFNULL((select count(village_id) from com_mng_village where community_id = cmpct.community_id),0) as villageTotal " + |
| | | "IFNULL((select count(DISTINCT `name`) from com_mng_village where community_id = cmpct.community_id),0) as villageTotal " + |
| | | " from com_mng_population_community_tags AS cmpct " + |
| | | " where cmpct.community_id = #{communityId}") |
| | | IndexBasicsStatisticsVO getScreenIndexByBasics(@Param("communityId") Long communityId); |
| | |
| | | + " event_category = 1 " + " AND event_type = 6 " + " AND event_status = 2 " |
| | | + " AND egd3.grid_community_id = #{communityId} " + " ), " + " 0 " + " ) AS eventTSTotal, " |
| | | + " IFNULL(( " + " SELECT " + " count( e4.id ) " + " FROM " + " `event` AS e4 " |
| | | + " LEFT JOIN event_grid_data AS egd4 ON egd4.id = e4.grid_id " + " WHERE " + " event_category = 1 " |
| | | + " AND event_type = 4 " + " AND event_status = 2 " + " AND egd4.grid_community_id = #{communityId} " |
| | | + " LEFT JOIN event_grid_data AS egd4 ON egd4.id = e4.grid_id " + " WHERE " + " event_category = 2 " |
| | | + " AND event_status = 2 " + " AND egd4.grid_community_id = #{communityId} " |
| | | + " ), " + " 0 " + " ) AS eventBWDTotal, " + " IFNULL(( " + " SELECT " + " count( e5.id ) " + " FROM " |
| | | + " `event` AS e5 " + " LEFT JOIN event_grid_data AS egd5 ON egd5.id = e5.grid_id " + " WHERE " |
| | | + " event_category = 1 " + " AND event_type = 2 " + " AND event_status = 2 " |
| | |
| | | |
| | | @Select("SELECT " + " id, " + " su.nick_name AS userName, " + " su.image_url, " + " caep.create_at, " |
| | | + " caep.detail AS eventDes, " + " caep.happen_addr AS happenAddress, " + " caep.lng_lat AS happentLatLng, " |
| | | + " caep.photo_path_list, " + " IFNULL( NULL, 7 ) AS eventType, " + " caep.handle_status AS eventDealStatus " |
| | | + " caep.photo_path_list, " + " IFNULL( NULL, 7 ) AS eventType, " + " caep.status AS eventDealStatus " |
| | | + "FROM " + " com_act_easy_photo AS caep " + " LEFT JOIN sys_user AS su ON su.user_id = caep.sponsor_id " |
| | | + "WHERE " + " id = #{eventId}") |
| | | EventNewStatisticsVO getEventScreenSSPDateil(@Param("eventId") Long eventId); |