Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
holmes
Commits
2d7c5b76
Commit
2d7c5b76
authored
May 05, 2022
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改电商和金融线上工单每天提醒
parent
e8dd11d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
BugNotifyTask.java
src/main/java/cn/qg/holmes/task/BugNotifyTask.java
+14
-4
No files found.
src/main/java/cn/qg/holmes/task/BugNotifyTask.java
View file @
2d7c5b76
...
...
@@ -171,16 +171,26 @@ public class BugNotifyTask {
}
/**
* 电商
和金融
线上工单每天提醒
* 电商线上工单每天提醒
* @throws Exception
*/
// @Scheduled(cron = "0 */1 * * * ?")
@Scheduled
(
cron
=
"0 0 18 ? * *"
)
public
void
p
rodBugDailyNotifyTask
()
throws
Exception
{
@Scheduled
(
cron
=
"0 0 1
0,1
8 ? * *"
)
public
void
dsP
rodBugDailyNotifyTask
()
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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment