|
@@ -147,7 +147,7 @@ public class RelationContactFacade extends RelationServiceImpl {
|
|
|
relationIdList.addAll(relationList.stream().map(i->i.getId()).collect(Collectors.toList()));
|
|
|
|
|
|
relationList.forEach(i->{
|
|
|
- relationIdList.addAll(repairRelationDataForDelBeforeAdd(i.getStartId(),relationId));
|
|
|
+ relationIdList.addAll(repairRelationDataForDelBeforeAdd(i.getEndId(),relationId));
|
|
|
});
|
|
|
|
|
|
if(!remove(relationQe)){
|
|
@@ -169,8 +169,8 @@ public class RelationContactFacade extends RelationServiceImpl {
|
|
|
List<Relation> relationList = new ArrayList<>();
|
|
|
relationNodeVO.getNodeList().forEach(i->{
|
|
|
Relation relation = new Relation();
|
|
|
- relation.setStartId(i.getConceptId());
|
|
|
- relation.setEndId(relationNodeVO.getConceptId());
|
|
|
+ relation.setStartId(relationNodeVO.getConceptId());
|
|
|
+ relation.setEndId(i.getConceptId());
|
|
|
relation.setRelationId(i.getRelationId());
|
|
|
relationList.add(relation);
|
|
|
|
|
@@ -270,7 +270,7 @@ public class RelationContactFacade extends RelationServiceImpl {
|
|
|
}
|
|
|
|
|
|
relationList.forEach(i->{
|
|
|
- repairRelationDataForDel(i.getStartId(), relationId,isDeleted,currentUser,now);
|
|
|
+ repairRelationDataForDel(i.getEndId(), relationId,isDeleted,currentUser,now);
|
|
|
});
|
|
|
}
|
|
|
|