| | |
| | | import com.panzhihua.common.model.vos.grid.PopulationDetailVO; |
| | | import com.panzhihua.common.model.vos.grid.PopulationListVO; |
| | | import com.panzhihua.common.model.vos.grid.admin.ComMngPopulationListVO; |
| | | import com.panzhihua.common.model.vos.grid.admin.PopulationStatisticsVO; |
| | | import com.panzhihua.common.model.vos.user.*; |
| | | import com.panzhihua.common.model.vos.community.PageComActMessageVO; |
| | | import com.panzhihua.common.model.vos.user.ComHouseMemberVo; |
| | |
| | | " </script>") |
| | | IPage<EventSpecialPopulationVO> getBuildingHousePopulationList(Page page,@Param("populationDTO") PageComMngPopulationDTO populationDTO); |
| | | |
| | | @Select("<script> " + |
| | | "SELECT " + |
| | | " count( id ) AS localNum, " + |
| | | " ( SELECT count( id ) FROM com_mng_population WHERE out_or_local = 2 " + |
| | | "<if test='communityId != null and communityId != 0'>" + |
| | | " AND act_id = #{communityId} " + |
| | | " </if> " + |
| | | " ) AS flowNum, " + |
| | | " ( SELECT count( id ) FROM com_mng_population WHERE label IS NOT NULL " + |
| | | "<if test='communityId != null and communityId != 0'>" + |
| | | " AND act_id = #{communityId} " + |
| | | " </if> " + |
| | | " ) AS specialNum " + |
| | | "FROM " + |
| | | " com_mng_population " + |
| | | "WHERE " + |
| | | " out_or_local = 1 " + |
| | | "<if test='communityId != null and communityId != 0'>" + |
| | | " AND act_id = #{communityId} " + |
| | | " </if> " + |
| | | " </script>") |
| | | PopulationStatisticsVO getGridPopulationStatistics(@Param("communityId") Long communityId); |
| | | |
| | | } |