| | |
| | | |
| | | @Select("select count(id) as houseTotal" |
| | | + ",(select count(DISTINCT floor) from com_mng_population_house where village_id = #{villageId}) as floorTotal" |
| | | + ",(select count(id) from com_mng_population where village_id = #{villageId}) as populationTotal" |
| | | + ",(select count(id) from com_mng_population where road = (select alley from com_mng_village where village_id = #{villageId})" |
| | | + " and door_no = (select house_num from com_mng_village where village_id = #{villageId})) as populationTotal" |
| | | + ",(select count(id) from com_mng_car where area_id = #{villageId}) as carTotal" |
| | | + " from com_mng_population_house where village_id = #{villageId}") |
| | | ComMngVillageVO getStatisticsCount(@Param("villageId") Long villageId); |
| | | |
| | | @Select("select count(village_id) as villageTotal" |
| | | + ",(select count(village_id) from com_mng_village where community_id = #{communityId} and type = 1) as townTotal" |
| | | + ",(select count(village_id) from com_mng_village where community_id = #{communityId} and type = 2) as countrysideTotal" |
| | | @Select("select count(distinct `name`) as villageTotal" |
| | | + ",(select count(distinct `name`) from com_mng_village where community_id = #{communityId} and type = 1) as townTotal" |
| | | + ",(select count(distinct `name`) from com_mng_village where community_id = #{communityId} and type = 2) as countrysideTotal" |
| | | + " from com_mng_village where community_id = #{communityId}") |
| | | ComMngVillageTotalVO getVillageStatisticsCount(@Param("communityId") Long communityId); |
| | | |
| | | @Select("select village_id,alley,house_num,group_at,type,address,update_at from com_mng_village where village_id = #{villageId}") |
| | | ComMngVillageVO getVillageById(@Param("villageId") Long villageId); |
| | | |
| | | @Select("<script> " + "SELECT " + " village_id, " + " `name` AS userName, " + " build_sum, " + " address, " |
| | | @Select("<script> " + "SELECT " + " village_id, " + " `name` AS userName, " + " IFNULL((select count(id) from com_mng_building where village_id = cmv.village_id),0) as buildSum, " + " address, " |
| | | + " create_at as createAt, " + " lng, " + " lat, " |
| | | + " ( SELECT count( id ) FROM com_mng_population WHERE village_id = cmv.village_id ) AS userSum, " |
| | | + " ( SELECT count( id ) FROM com_mng_population_house WHERE village_id = cmv.village_id ) AS houseNum, " |
| | |
| | | IPage<PageComMngVillageVO> getGridVillageList(Page page, |
| | | @Param("villageListAppDTO") ComMngVillageListAppDTO villageListAppDTO); |
| | | |
| | | IPage<PageComMngVillageVO> getGridVillageListApp(Page page, |
| | | @Param("villageListAppDTO") ComMngVillageListAppDTO villageListAppDTO); |
| | | |
| | | @Select("<script> " + "SELECT " + " alley, " + " house_num as doorNum, " + " `name` AS userName, " + " build_sum, " |
| | | + " address, " + " create_at as createAt, " |
| | | + " ( SELECT count( id ) FROM com_mng_population WHERE village_id = cmv.village_id ) AS userSum, " |