Commit 0400d807 authored by 黎博's avatar 黎博

test

parent 1b6150e8
......@@ -69,10 +69,12 @@ public class JiraToDingding {
DateTime startDate = issue.getCreationDate();
DateTime endDate = issue.getUpdateDate();
int duration = jiraIssueService.calculateBugFixTime(startDate, endDate);
// 如果已超过4个小时,则发送钉钉通知
if (duration >= 4) {
log.info("{} BUG持续时间:{}小时", issue.getKey(), duration);
DingdingUtils.sendToDingding(jiraBugPool.getSummary(), jiraBugPool.getDingUrl());
}
// 如果已超过4个小时,则发送钉钉通知
// if (duration >= 4) {
// DingdingUtils.sendToDingding(jiraBugPool.getSummary(), jiraBugPool.getDingUrl());
// }
}
}
}
......
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