From ff4542deedbadeb2cb674d6821219b8f63113773 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 25 Jun 2024 10:57:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=80=9A=E7=94=A8=E8=84=91=E5=9B=BE):?= =?UTF-8?q?=20=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functional/service/FunctionalCaseMinderService.java | 2 +- .../plan/service/TestPlanCollectionMinderService.java | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java index 2180138a93..389b6e128e 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java @@ -357,7 +357,7 @@ public class FunctionalCaseMinderService { targetTextParentIds.addAll(targetModuleParentIds); targetTextParentIds.addAll(targetCaseParentIds); List targetTextParentNoRepeatIds = targetTextParentIds.stream().distinct().toList(); - List allChildrenTextInDB = new ArrayList<>(); + List allChildrenTextInDB; Map> parentChildrenTextMap = new HashMap<>(); if (CollectionUtils.isNotEmpty(targetTextParentNoRepeatIds)) { mindAdditionalNodeExample = new MindAdditionalNodeExample(); diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java index 4903b1bc05..8146f682d2 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanCollectionMinderService.java @@ -245,7 +245,6 @@ public class TestPlanCollectionMinderService { beansOfType.forEach((k, v) -> { v.associateCollection(request.getPlanId(), associateMap, user); }); - List testPlanCollections = testPlanCollectionMapper.selectByExample(new TestPlanCollectionExample()); //更新测试计划 testPlanService.refreshTestPlanStatus(request.getPlanId()); }