Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-bl-service
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data-spider
qg-bl-service
Commits
796ec55d
Commit
796ec55d
authored
Apr 26, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改每天定时任务的执行时间
parent
80826cf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
BlackGreyListJob.java
...quantgroup/qgblservice/job/blimport/BlackGreyListJob.java
+5
-5
No files found.
src/main/java/cn/quantgroup/qgblservice/job/blimport/BlackGreyListJob.java
View file @
796ec55d
...
...
@@ -74,8 +74,7 @@ public class BlackGreyListJob {
* 出参说明: <br>
* -----------------------------------------------------------------------------
*/
//@Scheduled(cron = "0 30 1 * * ?") //每天凌晨1点30
@Scheduled
(
cron
=
"0 50 15 * * ?"
)
@Scheduled
(
cron
=
"0 0 6 * * ?"
)
//每天凌晨6点00
public
void
blackListImportJob
()
{
try
{
...
...
@@ -85,7 +84,7 @@ public class BlackGreyListJob {
String
todayNyr
=
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ISO_DATE_TIME
);
long
statUtc
=
0L
;
//1、导入-现金分期15+逾期黑名单
//1、导入-现金分期15+逾期黑名单
约耗时65866.ms
String
xianJinDai
=
null
;
try
{
statUtc
=
System
.
currentTimeMillis
();
...
...
@@ -97,7 +96,7 @@ public class BlackGreyListJob {
log
.
info
(
todayNyr
+
", 每天执行新增现金分期15+逾期黑名单结束, Msg: {} , 总耗时: {} "
,
xianJinDai
,
(
System
.
currentTimeMillis
()-
statUtc
)+
".ms"
);
}
//2、导入-Vcc15+逾期黑名单
//2、导入-Vcc15+逾期黑名单
约耗时14369.ms
String
vcc
=
null
;
try
{
statUtc
=
System
.
currentTimeMillis
();
...
...
@@ -110,7 +109,7 @@ public class BlackGreyListJob {
}
//3、将逾期已还清黑名单转灰名单
//3、将逾期已还清黑名单转灰名单
耗时1206283.ms 约20分钟
String
removeBlackToGrey
=
null
;
try
{
statUtc
=
System
.
currentTimeMillis
();
...
...
@@ -207,6 +206,7 @@ public class BlackGreyListJob {
//删掉执行标记
redisTemplate
.
delete
(
ConstantBlackGrey
.
REDIS_KEY
.
SIGN_IS_RUN_UPDATE_BLACK_OVERDUEDAY_KEY
);
//耗时3807471.ms 约64分钟,
updateBLOverdueDay
=
blackGreyListService
.
updateBlackListOverdueDay
();
}
catch
(
Exception
e
){
log
.
error
(
todayNyr
+
", 每天执行更新黑名单最大逾期天数和累计逾期天数异常"
,
e
);
...
...
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