From 3c884ccd7b51edf3b36840bf99de5edaa41a38a7 Mon Sep 17 00:00:00 2001
From: 张天森 <1292933220@qq.com>
Date: 星期三, 12 十月 2022 19:05:28 +0800
Subject: [PATCH] 三说会堂事件流程处理

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActDynServiceImpl.java |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActDynServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActDynServiceImpl.java
index cb0f377..4918406 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActDynServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActDynServiceImpl.java
@@ -68,10 +68,14 @@
         List<ComActDynVO> records = iPage.getRecords();
         if (!ObjectUtils.isEmpty(records)) {
             records.forEach(comActDynVO1 -> {
-                String content = comActDynVO1.getContent();
-                if (!ObjectUtils.isEmpty(content)) {
-                    String text = RichTextUtil.getText(content);
-                    comActDynVO1.setContentText(text);
+                if(comActDynVO1.getCategory()!=null&&comActDynVO1.getCategory()==4){
+                    comActDynVO1.setContent(null);
+                }else {
+                    String content = comActDynVO1.getContent();
+                    if (!ObjectUtils.isEmpty(content)) {
+                        String text = RichTextUtil.getText(content);
+                        comActDynVO1.setContentText(text);
+                    }
                 }
             });
         }

--
Gitblit v1.7.1