fix(测试跟踪): 修复定时任务消息通知的actualStartTime不是报告开始时间的缺陷

--bug=1019386 --user=王孝刚
定时任务消息知道的actualStartTime和actualEndTime变量建议和报告的开始结束时间一致
https://www.tapd.cn/55049933/s/1295324
This commit is contained in:
wxg0103 2022-11-14 13:41:41 +08:00 committed by wxg0103
parent 3515df5519
commit b85c7d49c2
1 changed files with 7 additions and 0 deletions

View File

@ -842,6 +842,13 @@ public class TestPlanService {
this.verifyPool(projectId, runModeConfig);
//创建测试报告然后返回的ID重新赋值为resourceID作为后续的参数
TestPlanScheduleReportInfoDTO reportInfoDTO = this.genTestPlanReport(planReportId, testPlanId, userId, triggerMode, runModeConfig);
//定时任务执行重新设置实际开始时间
if (StringUtils.equals(triggerMode, TriggerMode.SCHEDULE.name())) {
TestPlanWithBLOBs testPlanWithBLOBs = new TestPlanWithBLOBs();
testPlanWithBLOBs.setId(testPlanId);
testPlanWithBLOBs.setActualStartTime(System.currentTimeMillis());
testPlanMapper.updateByPrimaryKeySelective(testPlanWithBLOBs);
}
//测试计划准备执行取消测试计划的实际结束时间
extTestPlanMapper.updateActualEndTimeIsNullById(testPlanId);