From ac07c6b4c128f354663d05846037c6c1c8271008 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 16 Nov 2022 14:28:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=92=8C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=9C=BA=E6=99=AF=E7=9A=84=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/plan/TestPlanScenarioCaseService.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java index 451cd16a71..8b22d4c6c8 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/plan/TestPlanScenarioCaseService.java @@ -397,11 +397,7 @@ public class TestPlanScenarioCaseService { } TestPlanApiScenarioExample example = new TestPlanApiScenarioExample(); example.createCriteria().andTestPlanIdIn(planIds); - List testPlanApiScenarios = testPlanApiScenarioMapper.selectByExample(example); - List 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 relevanceProjectIds) {