浏览代码

fix :FOV-64

lvxianyun 3 年之前
父节点
当前提交
463ba28a27
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/persagy/proxy/relation/controller/RelationSyInFlController.java

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

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