fix(测试计划报告): 修复部分测试计划报告展示时没统计到结束时间到问题

修复部分测试计划报告展示时没统计到结束时间到问题
This commit is contained in:
song-tianyang 2022-01-16 11:07:13 +08:00 committed by fit2-zhao
parent 112a71d1fa
commit 5e0958acd6
1 changed files with 3 additions and 0 deletions

View File

@ -418,6 +418,9 @@ public class TestPlanReportService {
public TestPlanReportContentWithBLOBs parseReportDaoToReportContent(TestPlanSimpleReportDTO reportDTO, TestPlanReportContentWithBLOBs testPlanReportContentWithBLOBs) { public TestPlanReportContentWithBLOBs parseReportDaoToReportContent(TestPlanSimpleReportDTO reportDTO, TestPlanReportContentWithBLOBs testPlanReportContentWithBLOBs) {
String id = testPlanReportContentWithBLOBs.getId(); String id = testPlanReportContentWithBLOBs.getId();
String testPlanReportId = testPlanReportContentWithBLOBs.getTestPlanReportId(); String testPlanReportId = testPlanReportContentWithBLOBs.getTestPlanReportId();
if(testPlanReportContentWithBLOBs.getEndTime() != null){
reportDTO.setEndTime(testPlanReportContentWithBLOBs.getEndTime());
}
BeanUtils.copyBean(testPlanReportContentWithBLOBs, reportDTO); BeanUtils.copyBean(testPlanReportContentWithBLOBs, reportDTO);
testPlanReportContentWithBLOBs.setId(id); testPlanReportContentWithBLOBs.setId(id);
testPlanReportContentWithBLOBs.setTestPlanReportId(testPlanReportId); testPlanReportContentWithBLOBs.setTestPlanReportId(testPlanReportId);