Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
asset-distribution
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
asset-distribution
Commits
3f325433
Commit
3f325433
authored
Nov 09, 2020
by
liwenbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b3d1d9a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
RetryController.java
...tgroup/asset/distribution/controller/RetryController.java
+7
-5
No files found.
src/main/java/com/quantgroup/asset/distribution/controller/RetryController.java
View file @
3f325433
...
...
@@ -57,8 +57,10 @@ public class RetryController {
@Async
@RequestMapping
(
"/repeat_db_distribute"
)
public
void
repeatDBAudit
()
{
String
lockKey
=
"ASSET_DISTRIBUTION:REPEAT_DB_ATTRIBUTE:@88JMS"
;
try
{
boolean
b
=
redisService
.
setIfAbsent
(
"ASSET_DISTRIBUTION:REPEAT_DB_ATTRIBUTE:99AMU"
,
"1"
,
1
,
TimeUnit
.
DAYS
);
log
.
info
(
"数据库资产分发失败订单重新分发开始"
);
boolean
b
=
redisService
.
setIfAbsent
(
lockKey
,
"1"
,
1
,
TimeUnit
.
DAYS
);
if
(!
b
)
{
return
;
}
String
startTime
=
DateUtil
.
getStrFormatDate
(
"yyyy-MM-dd HH:mm:ss"
,
-
7
);
String
endTime
=
DateUtil
.
timestamp2Str
(
System
.
currentTimeMillis
()
+
""
,
"yyyy-MM-dd HH:mm:ss"
);
...
...
@@ -74,11 +76,11 @@ public class RetryController {
i
=
-
1
;
}
}
// 删除锁
redisService
.
del
(
"RULE_ENGINE:REPEAT_DB_AUDIT:88C1K"
);
log
.
info
(
"数据库审核失败订单重审完成!"
);
log
.
info
(
"数据库资产分发失败订单重新分发完成!"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"重复审核数据库失败订单任务出现异常!"
,
e
);
log
.
error
(
"数据库资产分发失败订单重新分发出现异常!"
,
e
);
}
finally
{
redisService
.
del
(
lockKey
);
}
}
...
...
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