From 5a8a90c095280fbd2106869ecd2bad10e01a57a6 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期四, 23 十二月 2021 18:10:22 +0800
Subject: [PATCH] 12/23  大屏修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java |  358 ++++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 301 insertions(+), 57 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java
index 29723dd..d8742d3 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ComMngPopulationService.java
@@ -1,26 +1,28 @@
 package com.panzhihua.service_community.service;
 
+import java.util.List;
+
 import com.panzhihua.common.model.dtos.community.ComMngPopulationDTO;
 import com.panzhihua.common.model.dtos.community.ComMngPopulationEditDTO;
 import com.panzhihua.common.model.dtos.community.ComMngPopulationTagCardNoDTO;
 import com.panzhihua.common.model.dtos.community.ComMngPopulationTagDTO;
+import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDTO;
 import com.panzhihua.common.model.dtos.community.bigscreen.BigScreenEventDetailDTO;
-import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO;
 import com.panzhihua.common.model.dtos.grid.PageComMngPopulationDTO;
 import com.panzhihua.common.model.dtos.grid.PagePopulationListDTO;
 import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationExportDTO;
 import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationListDTO;
-import com.panzhihua.common.model.dtos.grid.admin.ComMngPopulationSubordinateDTO;
 import com.panzhihua.common.model.dtos.grid.admin.PageComMngVillagePopulationDTO;
 import com.panzhihua.common.model.dtos.user.PageInputUserDTO;
 import com.panzhihua.common.model.vos.R;
-import com.panzhihua.common.model.vos.community.ComMngPopulationServeExcelVO;
-import com.panzhihua.common.model.vos.community.ComMngPopulationVO;
-import com.panzhihua.common.model.vos.community.EditComMngPopulationVO;
+import com.panzhihua.common.model.vos.community.*;
+import com.panzhihua.common.model.vos.user.ComMngTagVO;
 import com.panzhihua.common.model.vos.user.UserElectronicFileVO;
 import com.panzhihua.service_community.model.dos.ComMngPopulationDO;
-
-import java.util.List;
+import org.springframework.transaction.annotation.Transactional;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
 
 /**
  * 实有人口Service
@@ -28,66 +30,218 @@
 public interface ComMngPopulationService {
     /**
      * 新增实有人口
-     * @param comMngPopulationVO 实有人口信息
+     * 
+     * @param comMngPopulationVO
+     *            实有人口信息
      * @return 新增结果
      */
     R addPopulation(ComMngPopulationVO comMngPopulationVO);
+
     /**
      * 编辑实有人口
-     * @param comMngPopulationVO 编辑内容
+     * 
+     * @param comMngPopulationVO
+     *            编辑内容
      * @return 编辑结果
      */
     R putPopulation(ComMngPopulationVO comMngPopulationVO);
+
     /**
      * 查询实有人口
-     * @param comMngPopulationVO    请求参数
+     * 
+     * @param comMngPopulationVO
+     *            请求参数
      * @return 实有人口集合
      */
     R listPopulation(ComMngPopulationDTO comMngPopulationVO);
+
     /**
      * 实有人口详情
-     * @param populationId 实有人口id
+     * 
+     * @param populationId
+     *            实有人口id
      * @return 实有人口详情
      */
-    R detailPopulation(Long populationId);
+    R detailPopulation(Long populationId, Long communityId);
+
     /**
      * 分页查询实有人口
-     * @param comMngPopulationVO 查询参数
+     * 
+     * @param comMngPopulationVO
+     *            查询参数
      * @return 分页集合
      */
     R pagePopulation(ComMngPopulationDTO comMngPopulationVO);
+
     /**
      * 查询平台所有的实有人口
+     * 
      * @return 实有人口集合 按照创建顺序倒序排列
      */
     R listPopulationAll();
+
     /**
      * 删除实有人口
-     * @param populationId 实有人口id
+     * 
+     * @param populationId
+     *            实有人口id
      * @return 删除结果
      */
     R deletePopulation(Long populationId);
 
     /**
      * 导入实有人口
+     * 
      * @param list
      * @param communityId
      * @return
      */
-    R listSavePopulation(List<ComMngPopulationServeExcelVO> list, Long communityId) throws Exception;
+    R listSavePopulation(List<ComMngPopulationServeExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 导入吸毒人员
+     * 
+     * @param list
+     * @param communityId
+     * @return
+     */
+    R listSaveDrugPopulation(List<ComMngPopulationDrugExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入社区矫正人员
+     *
+     * @param list
+     *            社区矫正人员数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveCorrectPopulation(List<ComMngPopulationCorrectExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入重精人员
+     *
+     * @param list
+     *            重精人员数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveMajorPopulation(List<ComMngPopulationMajorExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入邪教人员
+     *
+     * @param list
+     *            邪教人员数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveCultPopulation(List<ComMngPopulationCultExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入刑释人员
+     *
+     * @param list
+     *            刑释人员数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveRehabilitationPopulation(List<ComMngPopulationRehabilitationExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入重点上访人员
+     *
+     * @param list
+     *            重点上访人员数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveKeyPopulation(List<ComMngPopulationKeyExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入服刑人员
+     *
+     * @param list
+     *            服刑人员数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveSentencePopulation(List<ComMngPopulationSentenceExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入退役军人
+     *
+     * @param list
+     *            退役军人数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveVeteransPopulation(List<ComMngPopulationVeteransExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入残疾人
+     *
+     * @param list
+     *            残疾人数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveDisabilityPopulation(List<ComMngPopulationDisabilityExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入低保户
+     *
+     * @param list
+     *            低保户数据
+     * @param communityId
+     *            社区id
+     * @return 导入结果
+     */
+    R listSaveLowSecurityPopulation(List<ComMngPopulationLowSecurityExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入高龄老人  listSavePopulationElderExcelVO  批量导入高龄老人
+     * @param    list  高龄老人数据
+     * @param    communityId   社区id
+     * @return    R   导入结果
+     * @author txb
+     * @date 2021/9/01 15:03
+     */
+    R listSaveEdlerPopulation(List<ComMngPopulationElderExcelVO> list, Long communityId, Long userId);
+
+    /**
+     * 批量导入养老金人员  listSavePopulationPensionExcelVO  批量导入养老金人员
+     * @param    list  养老金人员数据
+     * @param    communityId   社区id
+     * @return    R   导入结果
+     * @author txb
+     * @date 2021/9/01 15:03
+     */
+    R listSavePensionPopulation(List<ComMngPopulationPensionExcelVO> list, Long communityId, Long userId);
 
     /**
      * 确认导入实有人口(有则更新,无则新建)
      *
-     * @param list        用户信息
-     * @param communityId 社区id
+     * @param list
+     *            用户信息
+     * @param communityId
+     *            社区id
      * @return 导入结果
      */
     R listSavePopulationConfirm(List<ComMngPopulationServeExcelVO> list, Long communityId);
+
     /**
      * 根据实有人口id修改用户标签
      *
-     * @param populationTagDTO 请求参数
+     * @param populationTagDTO
+     *            请求参数
      * @return 修改结果
      */
     R editTagPopulation(ComMngPopulationTagDTO populationTagDTO);
@@ -95,15 +249,17 @@
     /**
      * 批量删除实有人口
      *
-     * @param Ids 实有人口id集合
+     * @param ids
+     *            实有人口id集合
      * @return 删除结果
      */
-    R deletePopulations(List<Long> Ids);
+    R deletePopulations(List<Long> ids, Long communityId);
 
     /**
      * 根据社区id查询所有实有人口
      *
-     * @param communityId 社区id
+     * @param communityId
+     *            社区id
      * @return 查询结果
      */
     R getPopulationListByCommunityId(Long communityId);
@@ -111,10 +267,20 @@
     /**
      * 根据id集合查询实有人口
      *
-     * @param Ids 实有人口id集合
+     * @param Ids
+     *            实有人口id集合
      * @return 查询结果
      */
     R getPopulationLists(List<Long> Ids);
+
+    /**
+     * 根据小区id查询实有人口
+     *
+     * @param villageId
+     *            小区id
+     * @return 查询结果
+     */
+    R getPopulationListByVillageId(Long villageId);
 
     /**
      * 编辑实有人口
@@ -128,7 +294,8 @@
     /**
      * 分页查询特殊群体
      *
-     * @param pageInputUserDTO 请求参数
+     * @param pageInputUserDTO
+     *            请求参数
      * @return 特殊群体列表
      */
     R specialInputUser(PageInputUserDTO pageInputUserDTO);
@@ -136,21 +303,48 @@
     /**
      * 删除特殊群体人员
      *
-     * @param id 特殊群体id
+     * @param id
+     *            特殊群体id
      * @return 删除结果
      */
-    R deleteSpecialInputUser(Long id);
+    R deleteSpecialInputUser(Long id,Long communityId);
+
+    /**
+     * 基础数据》特殊群体》分页查询标签列表
+     * 
+     * @param comMngUserTagDTO
+     * @return
+     */
+    R specialInputUserTags(PageInputUserDTO comMngUserTagDTO);
+
+    /**
+     * 新增或修改特殊群体标签
+     * 
+     * @param comMngTagVO
+     * @return
+     */
+    R saveSpecialInputUserTags(ComMngTagVO comMngTagVO);
+
+    /**
+     * 删除特殊群体标签
+     * 
+     * @param id
+     * @return
+     */
+    R deleteSpecialInputUserTags(Long id);
 
     /**
      * 查询实有人口电子档信息
      *
-     * @param populationId 实有人口id
+     * @param populationId
+     *            实有人口id
      * @return 实有人口电子档信息
      */
     R electronicArchivesPopulation(Long populationId);
 
     /**
      * 编辑电子档案
+     * 
      * @param userElectronicFileVO
      * @return
      */
@@ -158,37 +352,46 @@
 
     /**
      * 实有人口统计
-     * @param communityId   社区id
-     * @return  统计结果
+     * 
+     * @param communityId
+     *            社区id
+     * @return 统计结果
      */
     R getPopulationTotalByAdmin(Long communityId);
 
     /**
      * 首页大屏统计接口
-     * @param communityId   社区id
-     * @return  统计结果
+     * 
+     * @param communityId
+     *            社区id
+     * @return 统计结果
      */
     R getScreenIndex(Long communityId);
 
     /**
      * 事件大屏统计接口
-     * @param communityId   社区id
-     * @return  统计结果
+     * 
+     * @param screenEventDTO
+     *            请求参数
+     * @return 统计结果
      */
-    R getScreenEvent(Long communityId);
+    R getScreenEvent(BigScreenEventDTO screenEventDTO);
 
     /**
      * 民生大屏统计接口
-     * @param communityId   社区id
-     * @return  统计结果
+     * 
+     * @param communityId
+     *            社区id
+     * @return 统计结果
      */
     R getScreenCivil(Long communityId);
 
-	/**
+    /**
      * description 根据身份证信息修改用户标签信息
      *
-     * @param comMngPopulationTagCardNoDTO 查询对象
-     * @return ComMngPopulationDO  实有人口信息
+     * @param comMngPopulationTagCardNoDTO
+     *            查询对象
+     * @return ComMngPopulationDO 实有人口信息
      * @author manailin
      * @date 2021/6/10 17:00
      */
@@ -197,15 +400,17 @@
     /**
      * description 根据身份证信息从实有人口表查询对应信息
      *
-     * @param cardNo 身份证号码
-     * @return ComMngPopulationDO  实有人口信息
+     * @param cardNo
+     *            身份证号码
+     * @return ComMngPopulationDO 实有人口信息
      * @author manailin
      * @date 2021/6/10 17:00
      */
     ComMngPopulationDO getPopulationByCardNo(String cardNo);
 
     /**
-     *  大屏统计实有人口
+     * 大屏统计实有人口
+     * 
      * @param communityId
      * @return
      */
@@ -214,7 +419,8 @@
     /**
      * 获取社区网格
      *
-     * @param communityId 社区id
+     * @param communityId
+     *            社区id
      * @return 网格数据
      */
     R getScreenGirds(Long communityId);
@@ -222,7 +428,8 @@
     /**
      * 事件大屏查询事件详情
      *
-     * @param eventDetailDTO 请求参数
+     * @param eventDetailDTO
+     *            请求参数
      * @return 事件详情
      */
     R getScreenEventDetail(BigScreenEventDetailDTO eventDetailDTO);
@@ -230,7 +437,8 @@
     /**
      * 获取人口数据信息
      *
-     * @param populationListDTO 请求参数
+     * @param populationListDTO
+     *            请求参数
      * @return 人口数据
      */
     R pagePopulationListApp(PagePopulationListDTO populationListDTO);
@@ -238,8 +446,9 @@
     /**
      * 根据人口id获取人口详情
      *
-     * @param populationId  人口id
-     * @return  人口详情
+     * @param populationId
+     *            人口id
+     * @return 人口详情
      */
     R getPopulationDetailApp(Long populationId);
 
@@ -252,22 +461,28 @@
 
     /**
      * 综治后台-居民列表
-     * @param populationListDTO 请求参数
-     * @return  居民列表
+     * 
+     * @param populationListDTO
+     *            请求参数
+     * @return 居民列表
      */
     R getGridPopulationAdminList(ComMngPopulationListDTO populationListDTO);
 
     /**
      * 综治后台-删除居民
-     * @param ids   居民id集合
-     * @return  删除结果
+     * 
+     * @param ids
+     *            居民id集合
+     * @return 删除结果
      */
     R delGridPopulationAdmin(List<Long> ids);
 
     /**
      * 查询平台人口列表
-     * @param populationDTO 请求参数
-     * @return  人口列表
+     * 
+     * @param populationDTO
+     *            请求参数
+     * @return 人口列表
      */
     R getBuildingHousePopulationList(PageComMngPopulationDTO populationDTO);
 
@@ -275,23 +490,52 @@
 
     /**
      * 综治后台-居民标签栏统计
-     * @return  居民统计
+     * 
+     * @return 居民统计
      */
     R getGridPopulationStatistics(Long communityId);
 
     /**
      * 综治后台-居民导出查询居民数据
-     * @param populationExportDTO   请求参数
-     * @return  导出结果
+     * 
+     * @param populationExportDTO
+     *            请求参数
+     * @return 导出结果
      */
     R getGridPopulationExport(ComMngPopulationExportDTO populationExportDTO);
 
     /**
      * 综治后台-居民管理小区列表
-     * @param name  小区名字
-     * @return  小区列表
+     * 
+     * @param name
+     *            小区名字
+     * @return 小区列表
      */
     R relationVillage(String name);
 
     R getVillagePopulationAdmin(PageComMngVillagePopulationDTO villagePopulationDTO);
+
+    /**
+     * 导出特殊人群
+     * @param PageInputUserDTO
+     * @return
+     */
+    R specialInputUserExport(PageInputUserDTO PageInputUserDTO);
+
+    /**
+     * 西区大屏治理数据
+     * @return
+     */
+    R westScreenStatics();
+
+    R getComprehensivePopulationStatics(Long streetId);
+
+    R getComprehensiveStreetList();
+
+    /**
+     * 新版大屏首页
+     * @param communityId
+     * @return
+     */
+    R indexInfo(Long communityId);
 }

--
Gitblit v1.7.1