Ver código fonte

优化代码

wuxw 4 anos atrás
pai
commit
d281ed66d8

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/owner/OwnerDto.java

@@ -56,6 +56,7 @@ public class OwnerDto extends PageDto implements Serializable {
     private String state;
     private String startTime;
     private String endTime;
+    private String appUserName;
 
     private String bId;
 
@@ -337,4 +338,12 @@ public class OwnerDto extends PageDto implements Serializable {
     public void setCommunityName(String communityName) {
         this.communityName = communityName;
     }
+
+    public String getAppUserName() {
+        return appUserName;
+    }
+
+    public void setAppUserName(String appUserName) {
+        this.appUserName = appUserName;
+    }
 }

+ 2 - 1
service-user/src/main/java/com/java110/user/cmd/owner/OwnerCommunityCmd.java

@@ -56,7 +56,7 @@ public class OwnerCommunityCmd extends AbstractServiceCmdListener {
         ownerDto.setLink(reqJson.getString("link"));
         List<OwnerDto> ownerDtos = ownerInnerServiceSMOImpl.queryOwnerMembers(ownerDto);
 
-        if (ownerDtos == null || ownerDtos.size() < 0) {
+        if (ownerDtos == null || ownerDtos.size() < 1) {
             cmdDataFlowContext.setResponseEntity(ResultVo.success());
             return;
         }
@@ -64,6 +64,7 @@ public class OwnerCommunityCmd extends AbstractServiceCmdListener {
         List<String> communityIds = new ArrayList<>();
         for (OwnerDto tmpOwnerDto : ownerDtos) {
             communityIds.add(tmpOwnerDto.getCommunityId());
+            tmpOwnerDto.setAppUserName(tmpOwnerDto.getName());
         }
 
         CommunityDto communityDto = new CommunityDto();