Explorar el Código

fix bug:在编辑模式下进入竖井关联空间界面,右侧电梯和楼层的关系图展现的太多,七八十个(239上只展现一个)

lijie hace 3 años
padre
commit
ad6a3b5ac7

+ 5 - 1
src/main/java/com/persagy/proxy/report/controller/AdmEquipShaftController.java

@@ -164,7 +164,7 @@ public class AdmEquipShaftController {
             for(String spInFlId:spInFls) {
                 // 取竖井中在本楼层的空间
                 AdmSpace spInSh = spaceMap.get(spInFlId);
-                if(spInSh == null) {
+                if(spInSh == null || !floor.getId().equals(spInSh.getFloorId())) {
                     continue;
                 }
                 // 设置垂直交通关系
@@ -176,6 +176,10 @@ public class AdmEquipShaftController {
                     continue;
                 }
                 for(AdmSpace matchSpace:matchSpaces) {
+                    // 如果非本楼层的则跳过
+                    if (!floor.getId().equals(matchSpace.getFloorId())){
+                        continue;
+                    }
                     if(spaceList.add(matchSpace)) {
                         // 设置垂直交通关系
                         matchSpace.setSpaceIdList(trafficMap.getOrDefault(matchSpace.getId(),new HashSet<>()));