Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
stockPriceTack
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
刘长帅
stockPriceTack
Commits
9ff31a53
Commit
9ff31a53
authored
Jul 14, 2022
by
liucx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印日志
parent
aa3046e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
TimedTaskController.java
...ech/telmarket/task/communication/TimedTaskController.java
+20
-8
No files found.
src/main/java/com/zfxftech/telmarket/task/communication/TimedTaskController.java
View file @
9ff31a53
...
...
@@ -31,33 +31,41 @@ public class TimedTaskController {
@ApiOperation
(
value
=
"日统计沟通记录次数"
,
notes
=
"日统计沟通记录次数 "
,
httpMethod
=
"GET"
)
@GetMapping
(
"dayCommunication"
)
@Scheduled
(
cron
=
"0 25 12,16 * * ?"
)
// @Scheduled(cron = "0 25 12,16 * * ?")
@Scheduled
(
cron
=
"0 34 12,17 * * ?"
)
public
CommonResult
dayCommunicationCount
()
{
communicationRecordStatisticalLogService
.
saveOrUpdateDay
();
logger
.
info
(
"日统计沟通记录次数成功"
);
return
CommonResult
.
success
(
"日统计沟通记录次数成功"
);
}
@ApiOperation
(
value
=
"周统计沟通记录次数"
,
notes
=
"周统计沟通记录次数 "
,
httpMethod
=
"GET"
)
@GetMapping
(
"weekCommunication"
)
@Scheduled
(
cron
=
"0 15 12,16 * * ?"
)
@Scheduled
(
cron
=
"0 33 12,17 * * ?"
)
//@Scheduled(cron = "0 15 12,16 * * ?")
public
CommonResult
weekCommunicationCount
()
{
communicationRecordStatisticalLogService
.
saveOrUpdateWeek
();
logger
.
info
(
"日统计沟通记录次数成功"
);
return
CommonResult
.
success
(
"日统计沟通记录次数成功"
);
}
@ApiOperation
(
value
=
"月统计沟通记录次数"
,
notes
=
"月统计沟通记录次数 "
,
httpMethod
=
"GET"
)
@GetMapping
(
"mothCommunication"
)
@Scheduled
(
cron
=
"0 20 12,16 * * ?"
)
@Scheduled
(
cron
=
"0 32 12,17 * * ?"
)
// @Scheduled(cron = "0 20 12,16 * * ?")
public
CommonResult
monthCommunicationCount
()
{
communicationRecordStatisticalLogService
.
saveOrUpdateMonth
();
return
CommonResult
.
success
(
"日统计沟通记录次数成功"
);
logger
.
info
(
"月统计沟通记录次数成功"
);
return
CommonResult
.
success
(
"月统计沟通记录次数"
);
}
@ApiOperation
(
value
=
"总数据统计"
,
notes
=
"总数据统计 "
,
httpMethod
=
"GET"
)
@Scheduled
(
cron
=
"0 10 8,12,17 * * ?"
)
// @Scheduled(cron = "0 10 8,12,17 * * ?")
@Scheduled
(
cron
=
"0 31 8,12,17 * * ?"
)
public
CommonResult
totalommunication
()
{
communicationRecordStatisticalLogService
.
totalommunication
();
return
CommonResult
.
success
(
"日统计沟通记录次数成功"
);
logger
.
info
(
"总统计沟通记录次数成功"
);
return
CommonResult
.
success
(
"总统计沟通记录次数成功"
);
}
...
...
@@ -68,6 +76,7 @@ public class TimedTaskController {
@Scheduled
(
cron
=
"59 59 23 * * ? "
)
public
CommonResult
dayCommunicationReset
()
{
communicationRecordStatisticalLogService
.
dayCommunicationReset
();
logger
.
info
(
"日清零成功"
);
return
CommonResult
.
success
(
"日统计记录清零成功"
);
}
...
...
@@ -76,14 +85,17 @@ public class TimedTaskController {
@Scheduled
(
cron
=
"0 0 23 ? * 1"
)
public
CommonResult
weekCommunicationReset
()
{
communicationRecordStatisticalLogService
.
weekCommunicationReset
();
return
CommonResult
.
success
(
"日统计记录清零成功"
);
logger
.
info
(
"周清零成功"
);
return
CommonResult
.
success
(
"周清零成功"
);
}
@ApiOperation
(
value
=
"月清零"
,
notes
=
"月清零 "
,
httpMethod
=
"GET"
)
@GetMapping
(
"mothCommunicationReset"
)
@Scheduled
(
cron
=
"0 0 23 L * ?"
)
public
CommonResult
mothCommunicationReset
()
{
communicationRecordStatisticalLogService
.
mothCommunicationReset
();
return
CommonResult
.
success
(
"日统计记录清零成功"
);
logger
.
info
(
"月清零成功"
);
return
CommonResult
.
success
(
"月清零成功"
);
}
...
...
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