From 60784a329fd3cf9f4b6a75b8dc39ff79bd907dc6 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期三, 02 三月 2022 09:16:40 +0800
Subject: [PATCH] Merge branch 'hemenkou_dev' into dev

---
 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 7a97923..4941a19 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
@@ -271,10 +271,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);
                 });
@@ -1398,8 +1400,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