Commit 45a0bb9e authored by 黎博's avatar 黎博

新增供应链业务工单定时任务

parent 5906dbaa
...@@ -53,6 +53,10 @@ public class BugNotifyTask { ...@@ -53,6 +53,10 @@ public class BugNotifyTask {
@Value("${jr.prod.ding.url}") @Value("${jr.prod.ding.url}")
private String jrProdDingUrl; private String jrProdDingUrl;
@Value("${gylyw.prod.ding.url}")
private String gylywProdDingUrl;
/** /**
* 数据工单bug统计 * 数据工单bug统计
* @throws Exception * @throws Exception
...@@ -194,4 +198,16 @@ public class BugNotifyTask { ...@@ -194,4 +198,16 @@ public class BugNotifyTask {
DingdingUtils.sendToDingding(DingdingUtils.buildDailyProdBugNotifyMsg(jrUnsolvedList), jrProdDingUrl); DingdingUtils.sendToDingding(DingdingUtils.buildDailyProdBugNotifyMsg(jrUnsolvedList), jrProdDingUrl);
} }
} }
/**
* 供应链业务工单每天提醒
* @throws Exception
*/
@Scheduled(cron = "0 0 10,18 ? * *")
public void gylBusinessProdBugDailyNotifyTask() throws Exception {
if (scheduledTaskStart.equals("true")) {
Iterable<Issue> jrUnsolvedList = jiraService.getIssueListByJQL("project = GYLYW AND resolution = Unresolved ORDER BY priority DESC, created DESC");
DingdingUtils.sendToDingding(DingdingUtils.buildDailyProdBugNotifyMsg(jrUnsolvedList), gylywProdDingUrl);
}
}
} }
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