From fb811f77f58c149c71654fae5f41a890d48832d9 Mon Sep 17 00:00:00 2001 From: cedoo <chendong@inwhoop.com> Date: 星期二, 30 三月 2021 15:49:02 +0800 Subject: [PATCH] add: 实有单位归属地查询 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommonDataApi.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 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 48772c3..e7a33bf 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 @@ -5,6 +5,7 @@ import com.panzhihua.common.model.vos.community.*; import com.panzhihua.service_community.service.*; import lombok.extern.slf4j.Slf4j; +import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -129,6 +130,10 @@ return comMngRealCompanyService.detailComMngRealCompany(id); } + @GetMapping("/company/belongs") + public R belongsComMngRealCompany(@RequestBody ComMngRealCompanyBelongsDTO comMngRealCompanyBelongsDTO) { + return comMngRealCompanyService.belongsComMngRealCompany(comMngRealCompanyBelongsDTO); + } /** * 社区后台导入实有单位 * @param list 车实有单位列表 @@ -255,4 +260,16 @@ public R pagePopulation(@RequestBody ComMngPopulationDTO comMngPopulationVO) { return comMngPopulationService.pagePopulation(comMngPopulationVO); } + + /** + * 社区后台导入实有人口 + * @param list 数据 + * @param communityId 社区编号 + * @return + */ + @PostMapping("/population/import") + @Transactional(rollbackFor = Exception.class) + public R listSavePopulationExcelVO(@RequestBody List<ComMngPopulationServeExcelVO> list, @RequestParam(value = "communityId") Long communityId){ + return comMngPopulationService.listSavePopulation(list,communityId); + } } -- Gitblit v1.7.1