wuxw 1 год назад
Родитель
Сommit
988ca72275

+ 6 - 1
service-user/src/main/java/com/java110/user/bmo/owner/impl/QueryOwnerStatisticsBMOImpl.java

@@ -221,7 +221,12 @@ public class QueryOwnerStatisticsBMOImpl implements IQueryOwnerStatisticsBMO {
 
         for(OwnerDto ownerDto : ownerDtos) {
             for (Map count : ownerRoomCounts) {
-                if(!StringUtil.isEmpty(ownerDto.getOwnerId()) && !StringUtil.isEmpty(count.get("ownerId").toString()))
+                if(StringUtil.isEmpty(ownerDto.getOwnerId())){
+                    continue;
+                }
+                if(StringUtil.isEmpty(count.get("ownerId").toString())){
+                    continue;
+                }
                 if(ownerDto.getOwnerId().equals(count.get("ownerId").toString())){
                     ownerDto.setRoomCount(count.get("roomCount").toString());
                 }