fix(测试计划): 删除测试计划和测试场景的关联关系
This commit is contained in:
parent
61b82c28fd
commit
ac07c6b4c1
|
@ -397,11 +397,7 @@ public class TestPlanScenarioCaseService {
|
|||
}
|
||||
TestPlanApiScenarioExample example = new TestPlanApiScenarioExample();
|
||||
example.createCriteria().andTestPlanIdIn(planIds);
|
||||
List<TestPlanApiScenario> testPlanApiScenarios = testPlanApiScenarioMapper.selectByExample(example);
|
||||
List<String> ids = testPlanApiScenarios.stream().map(TestPlanApiScenario::getId).collect(Collectors.toList());
|
||||
TestPlanScenarioCaseBatchRequest request = new TestPlanScenarioCaseBatchRequest();
|
||||
request.setIds(ids);
|
||||
deleteApiCaseBath(request);
|
||||
testPlanApiScenarioMapper.deleteByExample(example);
|
||||
}
|
||||
|
||||
public void deleteByRelevanceProjectIds(String planId, List<String> relevanceProjectIds) {
|
||||
|
|
Loading…
Reference in New Issue