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 | 26 ++++++++++++++++++++++++-- 1 files changed, 24 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 17da062..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); } @@ -132,6 +132,17 @@ @PostMapping("/company/page") public R pageQueryComMngRealCompany(@RequestBody PageComMngRealCompanyDTO pageComMngRealCompanyDTO) { return comMngRealCompanyService.pageQueryComMngRealCompany(pageComMngRealCompanyDTO); + } + + /** + * 社区后台实有单位统计 + * + * @param communityId 社区id + * @return 统计结果 + */ + @PostMapping("/company/statistics") + public R getComMngRealCompanyTotalByAdmin(@RequestParam("communityId") Long communityId){ + return comMngRealCompanyService.getComMngRealCompanyTotalByAdmin(communityId); } /** @@ -314,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); } @@ -410,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