From e52ddfe8caf7d0027950033a5aff2a1fd3482e9d Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 01 六月 2022 17:50:25 +0800
Subject: [PATCH] 优化装修 跟踪记录 回显

---
 service-user/src/main/java/com/java110/user/cmd/owner/OwnerCommunityCmd.java |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/service-user/src/main/java/com/java110/user/cmd/owner/OwnerCommunityCmd.java b/service-user/src/main/java/com/java110/user/cmd/owner/OwnerCommunityCmd.java
index ca933bf..2c8dbc0 100644
--- a/service-user/src/main/java/com/java110/user/cmd/owner/OwnerCommunityCmd.java
+++ b/service-user/src/main/java/com/java110/user/cmd/owner/OwnerCommunityCmd.java
@@ -20,7 +20,7 @@
 import com.java110.utils.util.BeanConvertUtil;
 import com.java110.vo.ResultVo;
 import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import com.java110.core.log.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 
 import java.util.ArrayList;
@@ -71,12 +71,17 @@
         communityDto.setState("1100");
         communityDto.setCommunityIds(communityIds.toArray(new String[communityIds.size()]));
         List<CommunityDto> communityDtos = communityInnerServiceSMOImpl.queryCommunitys(communityDto);
+        if(communityDtos == null || communityDtos.size()<1){
+            cmdDataFlowContext.setResponseEntity(ResultVo.success());
+            return ;
+        }
         for (OwnerDto tmpOwnerDto : ownerDtos) {
             for (CommunityDto tmpCommunityDto : communityDtos) {
                 if (!tmpCommunityDto.getCommunityId().equals(tmpOwnerDto.getCommunityId())) {
                     continue;
                 }
                 tmpOwnerDto.setCommunityName(tmpCommunityDto.getName());
+                tmpOwnerDto.setsCommunityTel(tmpCommunityDto.getTel());
             }
         }
 

--
Gitblit v1.8.0