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 18f4310147..3e7f6564a6 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);