diff --git a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java index 6852518e04..6da57726b3 100644 --- a/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java +++ b/backend/services/dashboard/src/main/java/io/metersphere/dashboard/service/DashboardService.java @@ -791,19 +791,19 @@ public class DashboardService { List testPlanFunctionalCases = caseUserMap.get(userId); if (CollectionUtils.isNotEmpty(testPlanFunctionalCases)) { count += testPlanFunctionalCases.size(); - List list = testPlanFunctionalCases.stream().filter(t -> StringUtils.isNotBlank(t.getLastExecResult())).toList(); + List list = testPlanFunctionalCases.stream().filter(t -> !StringUtils.equalsIgnoreCase(t.getLastExecResult(), ExecStatus.PENDING.name())).toList(); finishCount += list.size(); } List testPlanApiCases = apiCaseUserMap.get(userId); if (CollectionUtils.isNotEmpty(testPlanApiCases)) { count += testPlanApiCases.size(); - List list = testPlanApiCases.stream().filter(t -> StringUtils.isNotBlank(t.getLastExecResult())).toList(); + List list = testPlanApiCases.stream().filter(t -> !StringUtils.equalsIgnoreCase(t.getLastExecResult(), ExecStatus.PENDING.name())).toList(); finishCount += list.size(); } List testPlanApiScenarios = apiScenarioUserMap.get(userId); if (CollectionUtils.isNotEmpty(testPlanApiScenarios)) { count += testPlanApiScenarios.size(); - List list = testPlanApiScenarios.stream().filter(t -> StringUtils.isNotBlank(t.getLastExecResult())).toList(); + List list = testPlanApiScenarios.stream().filter(t -> !StringUtils.equalsIgnoreCase(t.getLastExecResult(), ExecStatus.PENDING.name())).toList(); finishCount += list.size(); } List testPlanBugPageResponses = bugUserMap.get(userId);