From 2a57ffbbc7da4a01c6a7fd5cc30dbd4f187e4691 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Sun, 16 Jan 2022 11:07:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=8A=A5=E5=91=8A):=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8A=A5=E5=91=8A=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E6=97=B6=E6=B2=A1=E7=BB=9F=E8=AE=A1=E5=88=B0=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E6=97=B6=E9=97=B4=E5=88=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复部分测试计划报告展示时没统计到结束时间到问题 --- .../io/metersphere/track/service/TestPlanReportService.java | 3 +++ 1 file changed, 3 insertions(+) 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);