From faa5fcfb397daaaa774e3cb0e7bcbcd4bb3cad17 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Thu, 6 Jun 2024 15:32:38 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=96=B9=E6=B3=95=EF=BC=8C=E5=88=A0=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/plan/service/TestPlanManagementService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanManagementService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanManagementService.java index 26c8097734..dd778da6cc 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanManagementService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanManagementService.java @@ -93,11 +93,9 @@ public class TestPlanManagementService { if (collect.containsKey(item.getId())) { //存在子节点 List list = collect.get(item.getId()); - testPlanStatisticsService.calculateCaseCount(list); item.setChildren(list); item.setChildrenCount(list.size()); } - testPlanStatisticsService.calculateCaseCount(List.of(item)); }); } }