Commit 1674d23e authored by 黎博's avatar 黎博

修复提测项目不存在,发送钉钉通知的BUG

parent 68c8c8ed
......@@ -86,9 +86,13 @@ public class BugNotifyTask {
// 如果已超过4个小时,则发送钉钉通知
if (duration >= 4) {
DingRobot dingRobot = dingRobotService.getById(jiraBugPool.getDingRobotId());
// 项目进行中才发送通知
if (dingRobot.getStatus() == 1) {
DingdingUtils.sendToDingding(DingdingUtils.buildBugFixRemindMsg(issue, duration), jiraBugPool.getDingUrl());
// 项目存在,且项目进行中才发送通知
if (dingRobot != null) {
if (dingRobot.getStatus() == 1) {
DingdingUtils.sendToDingding(DingdingUtils.buildBugFixRemindMsg(issue, duration), jiraBugPool.getDingUrl());
}
} else {
log.info("提测项目不存在,暂不发送钉钉通知!");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment