From fa2fb4d1985e71b6bdd04ed012ed776d7104f7f4 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期二, 26 七月 2022 14:42:20 +0800
Subject: [PATCH] 双争双评优化

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 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 948bea2..f1d2e8c 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
@@ -129,5 +129,64 @@
         return this.comPbCheckUnitService.importCheckUnit(list,communityId,userId);
     }
 
+    /**
+     * 报到单位统计-顶部数据
+     * @param communityId
+     * @param belongTo
+     * @param choice
+     * @return
+     */
+    @GetMapping("/statistics/top")
+    public R unitStatisticsTop(@RequestParam(value = "communityId", required = false) Long communityId,
+                               @RequestParam(value = "belongTo") String belongTo,
+                               @RequestParam(value = "belongTo", required = false) String choice) {
+        return comPbCheckUnitService.unitStatisticsTop(communityId, belongTo, choice);
+    }
+
+    /**
+     * 报到单位统计
+     * @param commonDto
+     * @return
+     */
+    @PostMapping("/statistics")
+    public R unitStatistics(@RequestBody PagePbCheckUnitCommonDto commonDto) {
+        return comPbCheckUnitService.unitStatistics(commonDto);
+    }
+
+    /**
+     * 报到党员统计-顶部数据
+     * @param communityId
+     * @param belongTo
+     * @param choice
+     * @param checkUnitId
+     * @return
+     */
+    @GetMapping("/pbStatistics/top")
+    public R pbStatisticsTop(@RequestParam(value = "communityId", required = false) Long communityId,
+                             @RequestParam(value = "belongTo") String belongTo,
+                             @RequestParam(value = "choice", required = false) String choice,
+                             @RequestParam(value = "checkUnitId", required = false) Long checkUnitId) {
+        return comPbCheckUnitService.pbStatisticsTop(communityId, belongTo, choice, checkUnitId);
+    }
+
+    /**
+     * 报到党员统计-按单位归属统计
+     * @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