Skip to content

Commit

Permalink
fix(测试计划): 补充执行评论@通知
Browse files Browse the repository at this point in the history
--bug=1040870 --user=王旭 【测试计划】计划详情-用例详情-执行评论@用户a-用户a未收到站内信通知 https://www.tapd.cn/55049933/s/1519512
  • Loading branch information
WangXu10 authored and liuruibin committed May 23, 2024
1 parent 71a3508 commit 8c6358f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@ public void run(TestPlanCaseRunRequest request, LogInsertModule logInsertModule)

//执行记录
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);

}
Expand Down Expand Up @@ -509,7 +510,7 @@ private void handleFileAndNotice(String caseId, String projectId, List<String> u
//发通知
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())) {
Expand Down

0 comments on commit 8c6358f

Please sign in to comment.