fix(测试计划): 补充执行评论@通知

--bug=1040870 --user=王旭 【测试计划】计划详情-用例详情-执行评论@用户a-用户a未收到站内信通知 https://www.tapd.cn/55049933/s/1519512
This commit is contained in:
WangXu10 2024-05-23 16:17:02 +08:00 committed by 刘瑞斌
parent 71a35083b3
commit 8c6358f314
1 changed files with 2 additions and 1 deletions

View File

@ -400,6 +400,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
//执行记录
TestPlanCaseExecuteHistory executeHistory = buildHistory(request, logInsertModule.getOperator());
handleFileAndNotice(request.getCaseId(), request.getProjectId(), request.getPlanCommentFileIds(), logInsertModule.getOperator(), CaseFileSourceType.PLAN_COMMENT.toString(), request.getNotifier(), request.getTestPlanId(), request.getLastExecResult());
testPlanCaseExecuteHistoryMapper.insert(executeHistory);
}
@ -509,7 +510,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
//发通知
if (StringUtils.isNotBlank(notifier)) {
List<String> relatedUsers = Arrays.asList(notifier.split(";"));
testPlanSendNoticeService.sendNoticeCase(relatedUsers, userId, caseId, NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK, NoticeConstants.Event.REVIEW_AT, testPlanId);
testPlanSendNoticeService.sendNoticeCase(relatedUsers, userId, caseId, NoticeConstants.TaskType.FUNCTIONAL_CASE_TASK, NoticeConstants.Event.EXECUTE_AT, testPlanId);
}
if (StringUtils.equalsIgnoreCase(lastExecResult, ExecStatus.SUCCESS.name())) {