Browse Source

fix :FOV-64

lvxianyun 3 years ago
parent
commit
463ba28a27

+ 1 - 1
src/main/java/com/persagy/proxy/relation/controller/RelationSyInFlController.java

@@ -125,7 +125,7 @@ public class RelationSyInFlController {
         criteriaQuery.setCriteria(criteria);
         List<ObjectRelation> relationList = service.queryByCondition(AdmContextUtil.toDmpContext(), criteriaQuery);
         if(CollUtil.isNotEmpty(relationList)){
-            Map<String,ObjectRelation> objectRelationMap = CollUtil.fieldValueMap(relationList, "objTo");
+            Map<String,ObjectRelation> objectRelationMap = CollUtil.fieldValueMap(relationList, "objFrom");
             for (String buildingId : objectRelationMap.keySet()) {
                 RelationDTO relation = new RelationDTO(null, graphCode, "Sy2Bd", null, sysId, buildingId);
                 voList.add(relation);