Browse Source

fix :FOV-64

lvxianyun 3 years ago
parent
commit
32357ff860

+ 7 - 3
src/main/java/com/persagy/proxy/object/controller/AdmSystemController.java

@@ -296,9 +296,13 @@ public class AdmSystemController {
                             ObjectNode infobd = JsonNodeFactory.instance.objectNode();
                             infobd.put("BuildID",admFloor.getBuildingId());
                             infobd.put("BuildName",admFloor.getBuilding() != null ? admFloor.getBuilding().getLocalName() : "");
-                            infobd.put("FloorID",admFloor.getId());
-                            infobd.put("FloorName",admFloor.getLocalName());
-                            buildingFloorInfoList.add(infobd);
+                            if(!buildingFloorInfoList.contains(infobd)){
+                                buildingFloorInfoList.add(infobd);
+                            }
+                            ObjectNode infobd1 = infobd.deepCopy();
+                            infobd1.put("FloorID",admFloor.getId());
+                            infobd1.put("FloorName",admFloor.getLocalName());
+                            buildingFloorInfoList.add(infobd1);
                         });
                     }
                     admSystem.setFloorList(null);