fix(接口测试): 修复场景引用导入接口用例报错java.lang.IndexOutOfBoundsException的缺陷
--bug=1010655 --user=王孝刚 【接口测试】github#11022,场景引用导入接口用例报错java.lang.IndexOutOfBoundsException https://www.tapd.cn/55049933/s/1110550
This commit is contained in:
parent
9b8c16bbd9
commit
3b171984ab
|
@ -43,11 +43,12 @@ public class RelationshipEdgeService {
|
||||||
example.createCriteria()
|
example.createCriteria()
|
||||||
.andSourceIdEqualTo(sourceId)
|
.andSourceIdEqualTo(sourceId)
|
||||||
.andTargetIdEqualTo(targetId);
|
.andTargetIdEqualTo(targetId);
|
||||||
|
List<RelationshipEdge> list = relationshipEdgeMapper.selectByExample(example);
|
||||||
String graphId = relationshipEdgeMapper.selectByExample(example).get(0).getGraphId();
|
if (CollectionUtils.isNotEmpty(list)) {
|
||||||
updateGraphId(graphId, sourceId, targetId);
|
String graphId = relationshipEdgeMapper.selectByExample(example).get(0).getGraphId();
|
||||||
|
updateGraphId(graphId, sourceId, targetId);
|
||||||
relationshipEdgeMapper.deleteByExample(example);
|
relationshipEdgeMapper.deleteByExample(example);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void delete(String sourceId ,List<String> targetIds) {
|
public void delete(String sourceId ,List<String> targetIds) {
|
||||||
|
|
Loading…
Reference in New Issue