From a93aae216896cec7790abe3573f7d8c4e1f9d8cd Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期一, 25 七月 2022 15:59:27 +0800 Subject: [PATCH] 报到单位/党员统计 --- springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java | 65 ++++++++++++++++++++++++++++++++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java index fa2ba2b..88c2323 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java @@ -90,6 +90,18 @@ public R detailById(@RequestParam("id") Long id) { return this.comPbCheckUnitService.detailById(id); } + /** + * description detailById 查询详情 + * + * @param phone + * @return 详情数据 + * @author lyq + * @date 2022-02-16 16:22:18 + */ + @GetMapping("/detailByPhone") + public R detailByPhone(@RequestParam("phone") String phone) { + return this.comPbCheckUnitService.detailByPhone(phone); + } /** * description queryByPage 查询列表 @@ -117,5 +129,58 @@ return this.comPbCheckUnitService.importCheckUnit(list,communityId,userId); } + /** + * 报到单位统计-顶部数据 + * @param communityId + * @param belongTo + * @return + */ + @GetMapping("/statistics/top") + public R unitStatisticsTop(@RequestParam(value = "communityId", required = false) Long communityId, + @RequestParam(value = "belongTo") String belongTo) { + return comPbCheckUnitService.unitStatisticsTop(communityId, belongTo); + } + + /** + * 报到单位统计 + * @param commonDto + * @return + */ + @PostMapping("/statistics") + public R unitStatistics(@RequestBody PagePbCheckUnitCommonDto commonDto) { + return comPbCheckUnitService.unitStatistics(commonDto); + } + + /** + * 报到党员统计-顶部数据 + * @param communityId + * @param belongTo + * @return + */ + @GetMapping("/pbStatistics/top") + public R pbStatisticsTop(@RequestParam(value = "communityId", required = false) Long communityId, + @RequestParam(value = "belongTo") String belongTo) { + return comPbCheckUnitService.pbStatisticsTop(communityId, belongTo); + } + + /** + * 报到党员统计-按单位归属统计 + * @param commonDto + * @return + */ + @PostMapping("/pbStatistics/belong") + public R pbStatisticsBelong(@RequestBody PagePbCheckUnitCommonDto commonDto) { + return comPbCheckUnitService.pbStatisticsBelong(commonDto); + } + + /** + * 报到党员统计-按单位统计 + * @param commonDto + * @return + */ + @PostMapping("/pbStatistics/unit") + public R pbStatisticsUnit(@RequestBody PagePbCheckUnitCommonDto commonDto) { + return comPbCheckUnitService.pbStatisticsUnit(commonDto); + } } -- Gitblit v1.7.1