From 4ad4b51a4fb177eafee8a3a355496e7b6c1be662 Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期四, 11 七月 2024 16:24:46 +0800
Subject: [PATCH] 花城 小程序签退打卡获取积分详情报错2

---
 springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/java/com/panzhihua/service_dangjian/api/ComPbCheckUnitController.java |   93 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 93 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 3db252b..ed4fd7c 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
@@ -1,5 +1,7 @@
 package com.panzhihua.service_dangjian.api;
 
+import com.panzhihua.common.model.dtos.partybuilding.ComPbCheckUserDTO;
+import com.panzhihua.common.model.vos.TreeListVO;
 import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO;
 import com.panzhihua.service_dangjian.service.ComPbCheckUnitService;
 import com.panzhihua.common.model.dtos.common.*;
@@ -39,6 +41,15 @@
         return this.comPbCheckUnitService.queryByPage(comPbCheckUnit);
     }
 
+    @PostMapping("/treeList")
+    public R treeList(@RequestBody TreeListVO treeListVO){
+        return this.comPbCheckUnitService.treeList(treeListVO);
+    }
+
+    @GetMapping("/orgList")
+    public R orgList(){
+        return this.comPbCheckUnitService.orgList();
+    }
     /**
      * description  add  新增数据
      *
@@ -90,6 +101,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  查询列表
@@ -104,11 +127,81 @@
         return this.comPbCheckUnitService.queryByList(comPbCheckUnit);
     }
 
+    /**
+     * 批量导入报道单位
+     * @param list  导入数据
+     * @param communityId   社区id
+     * @param userId    用户id
+     * @return  导入结果
+     */
     @PostMapping("/importCheckUnit")
     public R importCheckUnit(@RequestBody List<ComPbCheckUnitExcelVO> list, @RequestParam(value = "communityId") Long communityId
             ,@RequestParam(value = "userId") Long userId){
         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,
+                               @RequestParam(value = "unitIds", required = false) Long[] unitIds,
+                               @RequestParam(value = "yearTime",required = false) String yearTime) {
+        return comPbCheckUnitService.unitStatisticsTop(communityId, belongTo, choice,unitIds,yearTime);
+    }
+
+    /**
+     * 报到单位统计
+     * @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,
+                             @RequestParam(value = "unitIds", required = false) Long[] unitIds,
+                             @RequestParam(value = "yearTime",required = false) String yearTime) {
+        return comPbCheckUnitService.pbStatisticsTop(communityId, belongTo, choice, checkUnitId,unitIds,yearTime);
+    }
+
+    /**
+     * 报到党员统计-按单位归属统计
+     * @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