fix: --bug=1007423 --user=刘瑞斌 【消息设置】-测试计划-执行完成-创建人未收到通知 https://www.tapd.cn/55049933/s/1058838

This commit is contained in:
CaptainB 2021-10-25 19:01:44 +08:00 committed by 刘瑞斌
parent 7d0216aaca
commit 238f482862
1 changed files with 5 additions and 1 deletions

View File

@ -805,7 +805,11 @@ public class TestPlanReportService {
// testPlan.setStatus(TestPlanStatus.Completed.name());
testPlanMapper.updateByPrimaryKeySelective(testPlan);
}
if (testPlan != null && StringUtils.equalsAny(report.getTriggerMode(), ReportTriggerMode.API.name(), ReportTriggerMode.SCHEDULE.name())) {
if (testPlan != null && StringUtils.equalsAny(report.getTriggerMode(),
ReportTriggerMode.MANUAL.name(),
ReportTriggerMode.API.name(),
ReportTriggerMode.SCHEDULE.name())
) {
//发送通知
sendMessage(report, testPlan.getProjectId());
}