From 082cf6fc9e74c7702665583d895809ef3dfe37e6 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 21 Apr 2023 16:51:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E4=B8=8D=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/service/scenario/ApiScenarioService.java | 2 -- 1 file changed, 2 deletions(-) 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());