From c6f7ec51e53eb6ec344afc8428a2511516fbbc0d Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期三, 13 十月 2021 12:02:27 +0800
Subject: [PATCH] 实有房屋-楼栋列表接口开发

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngBuildingDAO.java |   66 ++++++++++++++++++++++++++++++---
 1 files changed, 60 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngBuildingDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngBuildingDAO.java
index f8060a4..8ad0f09 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngBuildingDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngBuildingDAO.java
@@ -1,13 +1,21 @@
 package com.panzhihua.service_community.dao;
 
 import java.util.List;
+import java.util.Map;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.panzhihua.common.model.dtos.community.building.admin.PageBuildingListDto;
+import com.panzhihua.common.model.dtos.community.building.admin.PageBuildingUnitHouseListDto;
+import com.panzhihua.common.model.vos.community.ComMngVillageVO;
 import com.panzhihua.common.model.vos.community.VillageVO;
-import com.panzhihua.common.model.vos.community.building.admin.BuildingListHeaderStatisticsVo;
-import com.panzhihua.common.model.vos.community.building.admin.PageBuildingListVo;
+import com.panzhihua.common.model.vos.community.building.admin.BuildingDetailAdminVo;
+import com.panzhihua.common.model.vos.community.building.admin.BuildingListHeaderStatisticsAdminVo;
+import com.panzhihua.common.model.vos.community.building.admin.PageBuildingListAdminVo;
+import com.panzhihua.common.model.vos.grid.ComMngVillageBuildingHouseDetailVO;
+import com.panzhihua.common.model.vos.grid.ComMngVillageBuildingHouseVO;
+import com.panzhihua.common.model.vos.grid.ComMngVillageBuildingVO;
+import com.panzhihua.common.model.vos.grid.PopulationListVO;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
@@ -32,10 +40,56 @@
 
     /**
      * 社区后台-分页查询楼栋列表
-     * @param pageBuildingListDto   请求参数
-     * @return  楼栋列表
+     *
+     * @param pageBuildingListDto 请求参数
+     * @return 楼栋列表
      */
-    IPage<PageBuildingListVo> pageBuildingAdmin(Page page,@Param(value = "pageBuildingListDto") PageBuildingListDto pageBuildingListDto);
+    IPage<PageBuildingListAdminVo> pageBuildingAdmin(Page page, @Param(value = "pageBuildingListDto") PageBuildingListDto pageBuildingListDto);
 
-    BuildingListHeaderStatisticsVo buildingListHeaderStatisticsAdmin(Long communityId);
+    /**
+     * 社区后台-查询楼栋列表表头统计数据
+     *
+     * @param communityId 社区id
+     * @return 楼栋列表表头统计数据
+     */
+    BuildingListHeaderStatisticsAdminVo buildingListHeaderStatisticsAdmin(@Param(value = "communityId") Long communityId);
+
+    /**
+     * 社区后台-查询楼栋详情
+     *
+     * @param id 楼栋id
+     * @return 楼栋详情
+     */
+    BuildingDetailAdminVo detailBuildAdmin(@Param(value = "id") Long id);
+
+    /**
+     * 查询楼栋下的单元列表
+     * @param villageId    小区id
+     * @param floor 楼栋号
+     * @return  单元列表
+     */
+    List<ComMngVillageBuildingVO> buildingUnitList(@Param(value = "villageId") Long villageId, @Param(value = "floor") String floor);
+
+    /**
+     * 查询楼栋单元下房屋列表
+     * @param unitHouseListDto 请求参数
+     * @return  房屋列表
+     */
+    IPage<ComMngVillageBuildingHouseVO> getBuildingUnitHouseList(Page page, @Param(value = "pageBuildingListDto") PageBuildingUnitHouseListDto unitHouseListDto);
+
+    /**
+     * 查询楼栋单元下统计数据
+     * @param villageId 小区id
+     * @param floor 楼栋号
+     * @param unit  单元号
+     * @return  统计数据
+     */
+    Map<String,Object> getBuildingUnitHouseStatistics(@Param(value = "villageId") Long villageId, @Param(value = "floor") String floor, @Param(value = "unit") String unit);
+
+    ComMngVillageBuildingHouseDetailVO buildingUnitHouseDetailAdmin(@Param("houseId") Long houseId);
+
+    List<PopulationListVO> getGridVillageBuildingPopulationList(@Param("houseId") Long houseId,@Param("communityId") Long communityId,
+                                                                @Param("relation") Integer relation, @Param("relationId") Integer relationId);
+
+    List<ComMngVillageVO> buildingVillageListAdmin(@Param("communityId") Long communityId);
 }

--
Gitblit v1.7.1