From 9bab267e8be49ade8df6ec3d6d3f96b03321e429 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期二, 01 三月 2022 14:07:29 +0800
Subject: [PATCH] 三社功能,抽奖功能修改

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/CommunityApi.java |   14 ++++++++------
 1 files changed, 8 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 9653f8a..c63f567 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
@@ -279,10 +279,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);
                 });
@@ -1389,8 +1391,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);
     }
 
     /**

--
Gitblit v1.7.1