fix: --bug=1006118 --user=刘瑞斌 【系统设置-消息通知】测试评审完成后邮箱提示信息错误 https://www.tapd.cn/55049933/s/1048690
This commit is contained in:
parent
5d07c5b7c1
commit
dc9947dd4e
|
@ -73,7 +73,7 @@ public class TestCaseReviewController {
|
||||||
@PostMapping("/edit")
|
@PostMapping("/edit")
|
||||||
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_EDIT)
|
@RequiresPermissions(PermissionConstants.PROJECT_TRACK_REVIEW_READ_EDIT)
|
||||||
@MsAuditLog(module = "track_test_case_review", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#testCaseReview.id)", title = "#testCaseReview.name", content = "#msClass.getLogDetails(#testCaseReview.id)", msClass = TestCaseReviewService.class)
|
@MsAuditLog(module = "track_test_case_review", type = OperLogConstants.UPDATE, beforeEvent = "#msClass.getLogDetails(#testCaseReview.id)", title = "#testCaseReview.name", content = "#msClass.getLogDetails(#testCaseReview.id)", msClass = TestCaseReviewService.class)
|
||||||
@SendNotice(taskType = NoticeConstants.TaskType.REVIEW_TASK, event = NoticeConstants.Event.UPDATE, mailTemplate = "track/ReviewEnd", subject = "测试评审通知")
|
@SendNotice(taskType = NoticeConstants.TaskType.REVIEW_TASK, event = NoticeConstants.Event.UPDATE, mailTemplate = "track/ReviewUpdate", subject = "测试评审通知")
|
||||||
public TestCaseReview editCaseReview(@RequestBody SaveTestCaseReviewRequest testCaseReview) {
|
public TestCaseReview editCaseReview(@RequestBody SaveTestCaseReviewRequest testCaseReview) {
|
||||||
return testCaseReviewService.editCaseReview(testCaseReview);
|
return testCaseReviewService.editCaseReview(testCaseReview);
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,6 +415,7 @@ public class TestCaseReviewService {
|
||||||
BeanUtils.copyProperties(testCaseReviewRequest, _testCaseReview);
|
BeanUtils.copyProperties(testCaseReviewRequest, _testCaseReview);
|
||||||
String context = getReviewContext(testCaseReviewRequest, NoticeConstants.Event.UPDATE);
|
String context = getReviewContext(testCaseReviewRequest, NoticeConstants.Event.UPDATE);
|
||||||
Map<String, Object> paramMap = new HashMap<>(getReviewParamMap(testCaseReviewRequest));
|
Map<String, Object> paramMap = new HashMap<>(getReviewParamMap(testCaseReviewRequest));
|
||||||
|
paramMap.put("operator", SessionUtils.getUser().getName());
|
||||||
NoticeModel noticeModel = NoticeModel.builder()
|
NoticeModel noticeModel = NoticeModel.builder()
|
||||||
.operator(SessionUtils.getUserId())
|
.operator(SessionUtils.getUserId())
|
||||||
.context(context)
|
.context(context)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
<p style="text-align: left">${operator}更新了测试评审: ${name} <br>
|
<p style="text-align: left">${operator}完成了测试评审: ${name} <br>
|
||||||
点击下面链接进入用例评审页面</p>
|
点击下面链接进入用例评审页面</p>
|
||||||
<a href="${url}/#/track/review/view">${url}/#/track/review/view</a>
|
<a href="${url}/#/track/review/view">${url}/#/track/review/view</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>MeterSphere</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div>
|
||||||
|
<p style="text-align: left">${operator}更新了测试评审: ${name} <br>
|
||||||
|
点击下面链接进入用例评审页面</p>
|
||||||
|
<a href="${url}/#/track/review/view">${url}/#/track/review/view</a>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue