From 8d5fb4ee9d27fd6a61b210eaee74af265f76aa7c Mon Sep 17 00:00:00 2001
From: manailin <261030956@qq.com>
Date: 星期五, 08 四月 2022 14:55:18 +0800
Subject: [PATCH] [修改]修改配置

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java |   44 ++++++++++++++++++++++++++++++++++++++------
 1 files changed, 38 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
index 7a97923..afd04a4 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java
@@ -8,6 +8,8 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.dtos.property.CommonPage;
+import com.panzhihua.common.model.vos.LoginUserInfoVO;
 import com.panzhihua.common.model.vos.community.ComActActivityTypeVO;
 import com.panzhihua.common.model.vos.community.volunteer.ComMngVolunteerExcelVO;
 import com.panzhihua.common.model.vos.user.SysTemplateConfigVO;
@@ -271,10 +273,12 @@
                     }
                     comActActivityVO1.setComActActPrizeVOList(comActActPrizeVOList);
                     Integer volunteerMax = comActActivityVO1.getVolunteerMax();
-                    if (volunteerMax.intValue() != 0) {
-                        comActActivityVO1.setType(1);
-                    } else {
-                        comActActivityVO1.setType(2);
+                    if(comActActivityVO1.getType()==null){
+                        if (volunteerMax.intValue() != 0) {
+                            comActActivityVO1.setType(1);
+                        } else {
+                            comActActivityVO1.setType(2);
+                        }
                     }
                     fillActivitySignList(id, comActActivityVO1);
                 });
@@ -1215,6 +1219,15 @@
      */
     @PostMapping("addvolunteer")
     R addVolunteer(@RequestBody ComMngVolunteerMngVO comMngVolunteerMngVO) {
+        Long submitUserId = comMngVolunteerMngVO.getSubmitUserId();
+        if (Objects.nonNull(submitUserId)) {
+            //获取小程序用户信息
+            R<LoginUserInfoVO> userInfoR = userService.getUserInfoByUserId(submitUserId.toString());
+            LoginUserInfoVO userInfo = userInfoR.getData();
+            if (Objects.nonNull(userInfo)) {
+                comMngVolunteerMngVO.setIdCard(userInfo.getIdCard());
+            }
+        }
         return comMngVolunteerMngService.addVolunteer(comMngVolunteerMngVO);
     }
 
@@ -1398,8 +1411,8 @@
      */
     @PostMapping("listactivity")
     public R listActivity(@RequestParam("userId") Long userId,
-                          @RequestParam(value = "status", required = false) Integer status) {
-        return comActActivityService.listActivity(userId, status);
+                          @RequestParam(value = "status", required = false) Integer status,@RequestParam(value = "type", required = false) Integer type) {
+        return comActActivityService.listActivity(userId, status,type);
     }
 
     /**
@@ -2571,4 +2584,23 @@
     public R partyMemberCount(@RequestParam("communityId")Long communityId,@RequestParam("year")String year){
         return comActActivityService.partyMemberCount(communityId,year);
     }
+
+    /**
+     * 党员活动详情数据
+     * @return
+     */
+    @PostMapping("activity/partyMemberDetail")
+    public R partyMemberDetail(@RequestBody CommonPage commonPage){
+        return comActActivityService.partyMemberDetail(commonPage);
+    }
+
+
+    /**
+     * 导出党员活动详情数据
+     * @return
+     */
+    @PostMapping("activity/exportPartyMemberDetail")
+    public R exportPartyMemberDetail(@RequestBody CommonPage commonPage){
+        return comActActivityService.exportPartyMemberDetail(commonPage);
+    }
 }

--
Gitblit v1.7.1