From 21b9063949bb515f9d3de831fdf7354be93de0f7 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期五, 22 七月 2022 17:26:25 +0800
Subject: [PATCH] Merge branch 'huacheng_test' of http://gitlab.nhys.cdnhxx.com/root/zhihuishequ into huacheng_test
---
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 51 insertions(+), 2 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java
index fb97e74..bca5876 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java
@@ -6,6 +6,7 @@
import com.panzhihua.common.model.dtos.grid.AddComMngHousePopulationDTO;
import com.panzhihua.common.model.dtos.grid.DelComMngHousePopulationDTO;
+import com.panzhihua.service_community.model.dos.ComMngPopulationDO;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -318,8 +319,9 @@
* @return
*/
@GetMapping("/area/all")
- R getCityTreeByProvinceCode(@RequestParam(value = "provinceAdcode") Integer provinceAdcode) {
- return comMngProvinceService.getCityTreeByProvinceCode(provinceAdcode);
+ R getCityTreeByProvinceCode(@RequestParam(value = "provinceAdcode") Integer provinceAdcode,
+ @RequestParam(value = "areaCode", required = false) String areaCode) {
+ return comMngProvinceService.getCityTreeByProvinceCode(provinceAdcode, areaCode);
}
/**
@@ -332,6 +334,29 @@
@PostMapping("/population/page")
public R pagePopulation(@RequestBody ComMngPopulationDTO comMngPopulationVO) {
return comMngPopulationService.pagePopulation(comMngPopulationVO);
+ }
+ /**
+ * 社区后台老人导出管理列表
+ *
+ * @param comMngPopulationVO
+ * 查询参数
+ * @return 实有人口分页查询结果
+ */
+ @PostMapping("/population/exportOld")
+ public R exportOld(@RequestBody ComMngPopulationDTO comMngPopulationVO) {
+ return comMngPopulationService.exportOld(comMngPopulationVO);
+ }
+
+ /**
+ * 根据身份证查询实有人口信息
+ */
+ @GetMapping("/population/selectByIdCard")
+ public R selectByIdCard(@RequestParam("idCard") String idCard){
+ ComMngPopulationDO comMngPopulationDO=comMngPopulationService.getPopulationByCardNo(idCard);
+ if(comMngPopulationDO!=null){
+ return R.ok(comMngPopulationDO.getAddress());
+ }
+ return R.fail();
}
/**
@@ -675,6 +700,17 @@
public R specialInputUser(@RequestBody PageInputUserDTO pageInputUserDTO) {
return comMngPopulationService.specialInputUser(pageInputUserDTO);
}
+ /**
+ * 导出特殊群体
+ *
+ * @param pageInputUserDTO
+ * 请求参数
+ * @return 特殊群体列表
+ */
+ @PostMapping("/special/export")
+ public R specialInputUserExport(@RequestBody PageInputUserDTO pageInputUserDTO) {
+ return comMngPopulationService.specialInputUserExport(pageInputUserDTO);
+ }
/**
* 删除特殊群体人员
@@ -922,4 +958,17 @@
public R detailHousesUser(@RequestParam("id") Long id) {
return comMngPopulationHouseUserService.detail(id);
}
+
+ /**
+ * 历史数据人员类型填充
+ * @param newVoList
+ * @param communityId
+ * @param userId
+ * @return
+ */
+ @PostMapping("/history/filled")
+ public R filledPopulationPersonType(@RequestBody List<ComMngPopulationServeExcelVO> newVoList,
+ @RequestParam("communityId") Long communityId, @RequestParam("userId") Long userId) {
+ return comMngPopulationService.filledPopulationPersonType(newVoList, communityId, userId);
+ }
}
--
Gitblit v1.7.1