From aa76c2b0bb73e9fe463387fb5656ea80094eceec Mon Sep 17 00:00:00 2001 From: tangxiaobao <303826152@qq.com> Date: 星期三, 04 八月 2021 15:15:59 +0800 Subject: [PATCH] 值班表导入bug修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java | 15 +++++++++++++-- 1 files changed, 13 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 2cecb93..bef7196 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 @@ -119,7 +119,7 @@ * @return */ @PostMapping("/car/export") - public R exportRealCar(ExportComMngCarExcelDTO exportComMngCarExcelDTO){ + public R exportRealCar(@RequestBody ExportComMngCarExcelDTO exportComMngCarExcelDTO){ return comMngCarService.exportRealCar(exportComMngCarExcelDTO); } @@ -325,7 +325,7 @@ */ @PostMapping("/population/import") @Transactional(rollbackFor = Exception.class) - public R listSavePopulationExcelVO(@RequestBody List<ComMngPopulationServeExcelVO> list, @RequestParam(value = "communityId") Long communityId) throws Exception { + public R listSavePopulationExcelVO(@RequestBody List<ComMngPopulationServeExcelVO> list, @RequestParam(value = "communityId") Long communityId){ return comMngPopulationService.listSavePopulation(list, communityId); } @@ -421,6 +421,17 @@ } /** + * 根据小区id查询实有人口 + * + * @param villageId 小区id + * @return 查询结果 + */ + @PostMapping("/population/getListByVillageId") + R getPopulationListByVillageId(@RequestParam(value = "villageId") Long villageId){ + return comMngPopulationService.getPopulationListByVillageId(villageId); + } + + /** * 编辑实有人口 * * @param populationEditDTO -- Gitblit v1.7.1