From b5a292e4a3d48c5ce87b15a510b0e7cd8b46d2bd Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 19 Jun 2024 10:53:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=97=E8=A1=A8=E9=80=89=E4=B8=AD=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E9=9B=86=E6=80=BB=E6=95=B0=E9=87=8F=E5=8F=98=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1042524 --user=王旭 【测试计划】计划-计划详情-功能用例/接口用例/场景用例-左侧模块树-选择某模块时,上方代表全部数量的数字不应该改变 https://www.tapd.cn/55049933/s/1531356 --- .../java/io/metersphere/plan/service/TestPlanApiCaseService.java | 1 + .../io/metersphere/plan/service/TestPlanApiScenarioService.java | 1 + .../metersphere/plan/service/TestPlanFunctionalCaseService.java | 1 + 3 files changed, 3 insertions(+) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseService.java index 8526f53d18..64ce85768d 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiCaseService.java @@ -340,6 +340,7 @@ public class TestPlanApiCaseService extends TestPlanResourceService { * @return */ private Map getCollectionCount(TestPlanApiCaseModuleRequest request) { + request.setCollectionId(null); Map projectModuleCountMap = new HashMap<>(); List list = extTestPlanApiCaseMapper.collectionCountByRequest(request.getTestPlanId()); list.forEach(item -> { diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioService.java index b3719533bc..e3673ec99f 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanApiScenarioService.java @@ -473,6 +473,7 @@ public class TestPlanApiScenarioService extends TestPlanResourceService { * @return */ private Map getCollectionCount(TestPlanApiScenarioModuleRequest request) { + request.setCollectionId(null); Map projectModuleCountMap = new HashMap<>(); List list = extTestPlanApiScenarioMapper.collectionCountByRequest(request.getTestPlanId()); list.forEach(item -> { diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java index 637ece200b..0550a5f5b0 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanFunctionalCaseService.java @@ -365,6 +365,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService { * @return */ private Map getCollectionCount(TestPlanCaseModuleRequest request) { + request.setCollectionId(null); Map projectModuleCountMap = new HashMap<>(); List list = extTestPlanFunctionalCaseMapper.collectionCountByRequest(request.getTestPlanId()); list.forEach(item -> {