From ec76ed1ea86e13cd76dc99ec0dfdf657d34919a5 Mon Sep 17 00:00:00 2001
From: CeDo <cedoogle@gmail.com>
Date: 星期二, 11 五月 2021 09:15:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java |    3 ++-
 1 files changed, 2 insertions(+), 1 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 cb8d682..0d7c0e5 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
@@ -591,7 +591,8 @@
         AdministratorsUserVO user = this.baseMapper.selectUserByUserId(commentDO.getUserId());
         ComActNeighborCommentByAdminVO vo = new ComActNeighborCommentByAdminVO();
         BeanUtils.copyProperties(commentDO,vo);
-        vo.setUserName(user.getName());
+        String name = user.getName()==null?user.getNickName():user.getName();
+        vo.setUserName(name);
         return R.ok(vo);
     }
 

--
Gitblit v1.7.1