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