fix: 保存场景用例删除关联图关系时没有重新设置graphId

This commit is contained in:
chenjianxing 2022-01-27 15:07:24 +08:00 committed by 刘瑞斌
parent 252eb5e9e0
commit 4846e33df2
1 changed files with 3 additions and 4 deletions

View File

@ -51,10 +51,9 @@ public class RelationshipEdgeService {
}
public void delete(String sourceId ,List<String> targetIds) {
RelationshipEdgeExample example = new RelationshipEdgeExample();
example.createCriteria().andSourceIdEqualTo(sourceId).andTargetIdIn(targetIds);
relationshipEdgeMapper.deleteByExample(example);
targetIds.forEach(targetId -> {
delete(sourceId, targetId);
});
}
/**