diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java index 109bdd6deb..ebf2dc0067 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java @@ -1222,22 +1222,10 @@ public class TestPlanReportService { } if (StringUtils.isNotBlank(testPlanReportContent.getLoadAllCases())) { - reportHasData = true; List allCases = JSONObject.parseArray(testPlanReportContent.getLoadAllCases(), TestPlanLoadCaseDTO.class); - for (TestPlanLoadCaseDTO dto : allCases) { - if (StringUtils.equalsIgnoreCase(dto.getStatus(), "run")) { - isUpdate = true; - LoadTestReport report = loadTestReportMapper.selectByPrimaryKey(dto.getReportId()); - if (report != null) { - dto.setStatus(report.getStatus()); - } - } - - if (StringUtils.equalsAnyIgnoreCase("Underway", dto.getStatus(), dto.getStatus())) { - isTaskRunning = true; - } + if(!allCases.isEmpty()){ + isTaskRunning = true; } - testPlanReportContent.setLoadAllCases(JSONArray.toJSONString(allCases)); } if (isUpdate) { testPlanReportContentMapper.updateByPrimaryKeyWithBLOBs(testPlanReportContent);