Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhj-report
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
data-spider
zhj-report
Commits
32e0f6c9
Commit
32e0f6c9
authored
Nov 13, 2019
by
董建华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跑数据
parent
3901717e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ReportTimer.java
src/main/java/com/timer/ReportTimer.java
+3
-3
No files found.
src/main/java/com/timer/ReportTimer.java
View file @
32e0f6c9
...
...
@@ -38,7 +38,7 @@ public class ReportTimer {
}
//每天凌晨2点
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//
@Scheduled(cron = "0 0 2 * * ?")
void
reportDayData
()
{
if
(!
isRun
)
{
return
;
...
...
@@ -59,7 +59,7 @@ public class ReportTimer {
}
//每月1次
@Scheduled
(
cron
=
"0 0 3 1 1/1 ?"
)
//
@Scheduled(cron = "0 0 3 1 1/1 ?")
void
reportMonthData
()
{
if
(!
isRun
)
{
return
;
...
...
@@ -75,7 +75,7 @@ public class ReportTimer {
}
//一小时一次 延迟10秒
@Scheduled
(
fixedDelay
=
1000
*
60
*
60
,
initialDelay
=
10000
)
//
@Scheduled(fixedDelay = 1000 * 60 * 60, initialDelay = 10000)
public
void
quaryReportedStatus
()
{
//测试先去掉这个限制
if
(!
isRun
)
{
...
...
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