|
@@ -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);
|