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 170e7641ab..1cf46d3f36 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanReportService.java @@ -418,6 +418,9 @@ public class TestPlanReportService { public TestPlanReportContentWithBLOBs parseReportDaoToReportContent(TestPlanSimpleReportDTO reportDTO, TestPlanReportContentWithBLOBs testPlanReportContentWithBLOBs) { String id = testPlanReportContentWithBLOBs.getId(); String testPlanReportId = testPlanReportContentWithBLOBs.getTestPlanReportId(); + if(testPlanReportContentWithBLOBs.getEndTime() != null){ + reportDTO.setEndTime(testPlanReportContentWithBLOBs.getEndTime()); + } BeanUtils.copyBean(testPlanReportContentWithBLOBs, reportDTO); testPlanReportContentWithBLOBs.setId(id); testPlanReportContentWithBLOBs.setTestPlanReportId(testPlanReportId);