Procházet zdrojové kódy

租户列表优化

dongxin před 1 rokem
rodič
revize
344d28b334

+ 3 - 0
platform/src/main/java/com/jzg/service/impl/SysSystemServiceImpl.java

@@ -31,6 +31,7 @@ import org.springframework.transaction.annotation.Transactional;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
+import java.util.Objects;
 import java.util.stream.Collectors;
 
 /**
@@ -223,6 +224,8 @@ public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem
                 if(deptMap.containsKey(sysSystem.getSysCode())){
                     int count = deptMap.get(sysSystem.getSysCode()).size();
                     sysSystem.setDeptCount(count);
+                }else{
+                    sysSystem.setDeptCount(0);
                 }
 
                 List<String> areas = new ArrayList<>();