From 55cc3b3c16663781042aaef630ad72a6ac7e3927 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 24 十月 2022 10:32:16 +0800
Subject: [PATCH] Merge branch 'local_20221024' into huacheng_test

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

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java
index f5bedf0..56ae200 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActActivityServiceImpl.java
@@ -19,6 +19,7 @@
 
 import javax.annotation.Resource;
 
+import cn.hutool.core.collection.CollUtil;
 import com.panzhihua.common.constants.HttpStatus;
 import com.panzhihua.common.model.dtos.community.ActivityInviteDTO;
 import com.panzhihua.service_community.dao.ComActNeighborCircleDAO;
@@ -882,6 +883,15 @@
         }
         page.setSize(pageSize);
         page.setCurrent(pageNum);
+        Long communityId = comActActivityVO.getCommunityId();
+        if (null != communityId){
+            List<Long> communityIds = comActDAO.selectIds(communityId);
+            if (CollUtil.isEmpty(communityIds)) {
+                communityIds = new ArrayList<>();
+                communityIds.add(communityId);
+            }
+            comActActivityVO.setCommunityIds(communityIds);
+        }
         IPage<ComActActivityVO> iPage = comActActivityDAO.pageActivityCommunityBack(page, comActActivityVO);
         iPage.getRecords().forEach(vo ->{
             List<ComActActEvaluateDO> comActActEvaluateDOList = comActActEvaluateDAO

--
Gitblit v1.7.1