Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baihang-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
baihang-report
Commits
376beae5
Commit
376beae5
authored
Jan 03, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检测transaction_log重复工具
parent
a8b2d23c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
CleanningTransactionLogService.java
...rt/service/manualTool/CleanningTransactionLogService.java
+1
-1
No files found.
src/main/java/cn/quantgroup/report/service/manualTool/CleanningTransactionLogService.java
View file @
376beae5
...
@@ -573,7 +573,7 @@ public class CleanningTransactionLogService {
...
@@ -573,7 +573,7 @@ public class CleanningTransactionLogService {
String
endTime
=
now
.
minusDays
(
i
).
format
(
DateTimeFormatter
.
ISO_DATE
);
String
endTime
=
now
.
minusDays
(
i
).
format
(
DateTimeFormatter
.
ISO_DATE
);
Stopwatch
callRStopwatch
=
Stopwatch
.
createStarted
();
Stopwatch
callRStopwatch
=
Stopwatch
.
createStarted
();
String
CALL_SQL
=
"select transaction_id, uuid, url_type, code,
created_at
"
+
String
CALL_SQL
=
"select transaction_id, uuid, url_type, code,
time_created
"
+
" from transaction_log t where t.time_created >= '"
+
startTime
+
"' and t.time_created < '"
+
endTime
+
"'"
;
" from transaction_log t where t.time_created >= '"
+
startTime
+
"' and t.time_created < '"
+
endTime
+
"'"
;
List
<
TransactionLogPO
>
queryResult
=
riskDatasourceJdbcTemplate
.
query
(
CALL_SQL
,
new
BeanPropertyRowMapper
<>(
TransactionLogPO
.
class
));
List
<
TransactionLogPO
>
queryResult
=
riskDatasourceJdbcTemplate
.
query
(
CALL_SQL
,
new
BeanPropertyRowMapper
<>(
TransactionLogPO
.
class
));
log
.
info
(
"checkTransactionLogCF检测重复transaction_log查询数据结束, startTime: {} , endTime: {} , size: {} , sql: {} , 耗时: {} "
,
startTime
,
endTime
,
CollectionUtils
.
isEmpty
(
queryResult
)
?
0
:
queryResult
.
size
(),
CALL_SQL
,
callRStopwatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
));
log
.
info
(
"checkTransactionLogCF检测重复transaction_log查询数据结束, startTime: {} , endTime: {} , size: {} , sql: {} , 耗时: {} "
,
startTime
,
endTime
,
CollectionUtils
.
isEmpty
(
queryResult
)
?
0
:
queryResult
.
size
(),
CALL_SQL
,
callRStopwatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
));
...
...
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