From a37f361f29235c62ffbc20653e35ef11a46597aa Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 8 Jun 2022 17:57:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=88=97=E8=A1=A8=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=BF=9B=E5=BA=A6=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013886 --user=陈建星 【测试跟踪】测试计划列表,显示的测试进度不对 https://www.tapd.cn/55049933/s/1176724 --- .../main/java/io/metersphere/track/service/TestPlanService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index a0cc2a6300..5335204144 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -377,7 +377,7 @@ public class TestPlanService { Integer functionalExecTotal = 0; for (CountMapDTO item : statusCountMap) { - functionalExecTotal++; + functionalExecTotal += functionalExecTotal + item.getValue(); if (!StringUtils.equals(item.getKey(), TestPlanTestCaseStatus.Prepare.name()) && !StringUtils.equals(item.getKey(), TestPlanTestCaseStatus.Underway.name())) { testPlan.setTested(testPlan.getTested() + item.getValue());