diff --git a/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java b/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java index d3b596f7f2..1e70c0fc05 100644 --- a/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java +++ b/backend/src/main/java/io/metersphere/commons/utils/TestPlanUtils.java @@ -67,7 +67,7 @@ public class TestPlanUtils { String status = item.getStatus(); if (StringUtils.isNotBlank(status) && !StringUtils.equalsAnyIgnoreCase(status, TestPlanTestCaseStatus.Underway.name(), TestPlanTestCaseStatus.Prepare.name(), - ExecuteResult.UN_EXECUTE.getValue(), ExecuteResult.STOP.getValue())) { + ExecuteResult.UN_EXECUTE.toString(), ExecuteResult.STOP.toString())) { // 计算执行过的数量 report.setExecuteCount(report.getExecuteCount() + 1); if (StringUtils.equals(successStatus, status)) {