fix(测试计划): 执行成功&&失败无通知

--bug=1042822 --user=宋昌昌 【测试计划】执行测试成功/失败-无法收到消息通知 https://www.tapd.cn/55049933/s/1533817
This commit is contained in:
song-cc-rock 2024-06-21 17:51:14 +08:00 committed by Craftsman
parent 8a2d9e273e
commit 16bd64307c
2 changed files with 2 additions and 1 deletions

View File

@ -308,6 +308,7 @@ public class TestPlanReportService {
report.setDeleted(false);
report.setPassThreshold(config == null ? null : config.getPassThreshold());
report.setParentId(genParam.getGroupReportId());
report.setTestPlanName(genParam.getTestPlanName());
testPlanReportMapper.insertSelective(report);
TestPlanReportDetailCaseDTO reportCaseDetail;

View File

@ -196,7 +196,7 @@ public class TestPlanSendNoticeService {
paramMap.put("Language", user.getLanguage());
NoticeModel noticeModel = NoticeModel.builder().operator(currentUser).excludeSelf(false)
.context(template).subject(subject).paramMap(paramMap).event(StringUtils.equals(executeResult, ReportStatus.SUCCESS.name()) ?
NoticeConstants.TemplateText.TEST_PLAN_TASK_EXECUTE_SUCCESSFUL : NoticeConstants.TemplateText.TEST_PLAN_TASK_EXECUTE_FAILED).build();
NoticeConstants.Event.EXECUTE_SUCCESSFUL : NoticeConstants.Event.EXECUTE_FAIL).build();
noticeSendService.send(NoticeConstants.TaskType.TEST_PLAN_TASK, noticeModel);
}
}