From 6aeed3a91b3bca658fc8dbb0f8642712e484d77d Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 13 十二月 2023 16:13:13 +0800
Subject: [PATCH] 修改路北社区 活动发布  报名时间问题

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
index 939f201..7a98656 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
@@ -793,7 +793,11 @@
         if (comActNeighborCircleDO.getTopicId() != null) {
             ComActNeighborCircleTopicDO circleTopicDO =
                 comActNeighborCircleTopicMapper.selectById(comActNeighborCircleDO.getTopicId());
-            vo.setTopicName(circleTopicDO.getName());
+            if(circleTopicDO!=null && !StringUtils.isEmpty(circleTopicDO.getName()))
+            {
+                vo.setTopicName(circleTopicDO.getName());
+            }
+
         }
         return R.ok(vo);
     }
@@ -1187,8 +1191,13 @@
                         }else {
                             //新数据,获取单位,社区名
                             vo.setUnitName(comActDAO.selectUnitName(vo.getUnitId()));
-                            if (ObjectUtils.isNotEmpty(vo.getCommunityId())) {
-                                vo.setCommunityName(comActDAO.selectById(vo.getCommunityId()).getName());
+                            if (ObjectUtils.isNotEmpty(vo.getCommunityId()))
+                            {
+                                ComActDO actDO=comActDAO.selectById(vo.getCommunityId());
+                                if(actDO!=null && !StringUtils.isEmpty(actDO.getName()))
+                                {
+                                    vo.setCommunityName(actDO.getName());
+                                }
                             }
                             unitActivityAnalysisVOS.add(vo);
                         }

--
Gitblit v1.7.1