Browse Source

fix:关系 to 和 from反了

lvxianyun 3 years ago
parent
commit
30ff8d7f45

+ 1 - 1
src/main/java/com/persagy/proxy/adm/controller/AdmShaftController.java

@@ -96,7 +96,7 @@ public class AdmShaftController {
                 List<AdmShaft> shafts = service.doInsert(AdmContextUtil.toDmpContext(), AdmShaft.class, CollUtil.newArrayList(admShaft));
                 admShaft.getBuildingList().stream().forEach(admBuilding ->{
                     if(StrUtil.isNotEmpty(admBuilding.getId())){
-                        relationDTOS.add(new RelationDTO(null, "ArchSubset", "Bd2Sh", null, shafts.get(0).getId() , admBuilding.getId()));
+                        relationDTOS.add(new RelationDTO(null, "ArchSubset", "Bd2Sh", null , admBuilding.getId(), shafts.get(0).getId()));
                     }
                 });
                 admShafts.addAll(shafts);

+ 1 - 1
src/main/java/com/persagy/proxy/adm/controller/AdmSystemController.java

@@ -122,7 +122,7 @@ public class AdmSystemController {
                     String floorId = info.get("FloorID") == null ? null : info.get("FloorID").textValue();
                     String buildID = info.get("BuildID") == null ? null : info.get("BuildID").textValue();
                     if(StrUtil.isNotEmpty(floorId)){
-                        relationDTOS.add(new RelationDTO(null, "MechInArch", "Bd2Fl", null, systemId , floorId));
+                        relationDTOS.add(new RelationDTO(null, "MechInArch", "Sy2Fl", null, systemId , floorId));
                     }
                     if(StrUtil.isNotEmpty(buildID)){
                         relationDTOS.add(new RelationDTO(null, "MechForArch", "Sy2Bd", null, systemId , buildID));