From e7fbb69f132d0b040e329f8cf212de5d9ce5f3b3 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期一, 21 二月 2022 13:59:12 +0800
Subject: [PATCH] 抽奖活动代码提交

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActRaffleServiceImpl.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActRaffleServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActRaffleServiceImpl.java
index 6b3735d..8bac9fe 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActRaffleServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActRaffleServiceImpl.java
@@ -112,6 +112,15 @@
           ComActRaffleRecordVO comActRaffleRecordVO=comActRaffleRecordDao.selectByUserId(userId,id);
           if(comActRaffleRecordVO!=null){
               comActRaffleVO.setComActRaffleRecordVO(comActRaffleRecordVO);
+              comActRaffleVO.setJoinStatus(0);
+          }
+          else {
+              if(comActRaffleVO.getStatus()==1){
+                  comActRaffleVO.setJoinStatus(1);
+              }
+              else {
+                  comActRaffleVO.setJoinStatus(0);
+              }
           }
         }
         return R.ok(comActRaffleVO);

--
Gitblit v1.7.1