chore: 删除不用的代码

This commit is contained in:
CaptainB 2023-04-21 16:51:05 +08:00 committed by 刘瑞斌
parent 5f46dda7b7
commit 082cf6fc9e
1 changed files with 0 additions and 2 deletions

View File

@ -2077,8 +2077,6 @@ public class ApiScenarioService {
public void deleteApiScenarioByVersion(String refId, String version) { public void deleteApiScenarioByVersion(String refId, String version) {
ApiScenarioExample example = new ApiScenarioExample(); ApiScenarioExample example = new ApiScenarioExample();
example.createCriteria().andRefIdEqualTo(refId).andVersionIdEqualTo(version); example.createCriteria().andRefIdEqualTo(refId).andVersionIdEqualTo(version);
List<ApiScenario> apiScenarios = apiScenarioMapper.selectByExample(example);
List<String> scenarioIds = apiScenarios.stream().map(ApiScenario::getId).collect(toList());
apiScenarioMapper.deleteByExample(example); apiScenarioMapper.deleteByExample(example);
scheduleService.deleteByResourceId(refId, ScheduleGroup.API_SCENARIO_TEST.name()); scheduleService.deleteByResourceId(refId, ScheduleGroup.API_SCENARIO_TEST.name());