Commit 2d7c5b76 authored by 黎博's avatar 黎博

修改电商和金融线上工单每天提醒

parent e8dd11d4
......@@ -171,16 +171,26 @@ public class BugNotifyTask {
}
/**
* 电商和金融线上工单每天提醒
* 电商线上工单每天提醒
* @throws Exception
*/
// @Scheduled(cron = "0 */1 * * * ?")
@Scheduled(cron = "0 0 18 ? * *")
public void prodBugDailyNotifyTask() throws Exception {
@Scheduled(cron = "0 0 10,18 ? * *")
public void dsProdBugDailyNotifyTask() throws Exception {
if (scheduledTaskStart.equals("true")) {
Iterable<Issue> dsUnsolvedList = jiraService.getIssueListByJQL("project = YXMXS AND resolution = Unresolved ORDER BY priority DESC, created DESC");
Iterable<Issue> jrUnsolvedList = jiraService.getIssueListByJQL("project = YFGDZZ AND resolution = Unresolved ORDER BY priority DESC, created DESC");
DingdingUtils.sendToDingding(DingdingUtils.buildDailyProdBugNotifyMsg(dsUnsolvedList), dsProdDingUrl);
}
}
/**
* 金融线上工单每天提醒
* @throws Exception
*/
@Scheduled(cron = "0 0 10,14,18 ? * *")
public void jrProdBugDailyNotifyTask() throws Exception {
if (scheduledTaskStart.equals("true")) {
Iterable<Issue> jrUnsolvedList = jiraService.getIssueListByJQL("project = YFGDZZ AND resolution = Unresolved ORDER BY priority DESC, created DESC");
DingdingUtils.sendToDingding(DingdingUtils.buildDailyProdBugNotifyMsg(jrUnsolvedList), jrProdDingUrl);
}
}
......
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