From 19e73009ce1df299e2526e8e7e7a88af871b5a6e Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期二, 25 七月 2023 19:26:25 +0800
Subject: [PATCH] 修改三说会堂综治管理后台接口详情报错

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

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
index eb0fb36..625fcf2 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComEventServiceImpl.java
@@ -927,12 +927,17 @@
         return map;
     }
 
-    public String getPhone(ComEvent comEvent){
+    public String getPhone(ComEvent comEvent)
+    {
+        if(comEvent==null)
+        {
+            return  "";
+        }
         if (isNull(comEvent.getRequestUserCommunity())){
             ComSanshuoIndustryCenter sanshuoIndustryCenter=comSanShuoIndustryCenterService.getById(comEvent.getCenterId());
             if(sanshuoIndustryCenter==null)
             {
-                return null;
+                return "";
             }
             else
             {
@@ -945,14 +950,14 @@
             {
                 String contactsPhone = comActDO.getContactsPhone();
                 if (isNull(contactsPhone)){
-                    return null;
+                    return "";
                 }
                 else
                 {
                     return contactsPhone;
                 }
             }
-            return null;
+            return "";
         }
     }
 

--
Gitblit v1.7.1