diff --git a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java index b178de1a0c..27b762e4f9 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioService.java @@ -2077,8 +2077,6 @@ public class ApiScenarioService { public void deleteApiScenarioByVersion(String refId, String version) { ApiScenarioExample example = new ApiScenarioExample(); example.createCriteria().andRefIdEqualTo(refId).andVersionIdEqualTo(version); - List apiScenarios = apiScenarioMapper.selectByExample(example); - List scenarioIds = apiScenarios.stream().map(ApiScenario::getId).collect(toList()); apiScenarioMapper.deleteByExample(example); scheduleService.deleteByResourceId(refId, ScheduleGroup.API_SCENARIO_TEST.name());