huanghongfa
2021-07-01 3eee4ef8dddb8d113490dc84ed174e1faa09b00f
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java
@@ -21,6 +21,7 @@
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;
@@ -993,4 +994,27 @@
            " </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);
}