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
fdb213c5
Commit
fdb213c5
authored
Jan 02, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检测tidb的call_record表数据是否有重复数据工具
parent
a2e039f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
CleanningTransactionLogService.java
...rt/service/manualTool/CleanningTransactionLogService.java
+8
-8
No files found.
src/main/java/cn/quantgroup/report/service/manualTool/CleanningTransactionLogService.java
View file @
fdb213c5
...
...
@@ -585,10 +585,10 @@ public class CleanningTransactionLogService {
TransactionLogPO
transactionLogPO
=
transactionLogPOList
.
get
(
tran
);
String
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
transactionLogPO
.
getTimeCreated
());
String
key
=
new
StringBuffer
(
transactionLogPO
.
getTransactionId
())
.
append
(
StringUtils
.
isNotBlank
(
transactionLogPO
.
getUuid
())
?
transactionLogPO
.
getUuid
()
:
""
)
.
append
(
transactionLogPO
.
getUrlType
())
.
append
(
transactionLogPO
.
getCode
())
String
key
=
new
StringBuffer
(
transactionLogPO
.
getTransactionId
())
.
append
(
","
)
.
append
(
StringUtils
.
isNotBlank
(
transactionLogPO
.
getUuid
())
?
transactionLogPO
.
getUuid
()
:
""
)
.
append
(
","
)
.
append
(
transactionLogPO
.
getUrlType
())
.
append
(
","
)
.
append
(
transactionLogPO
.
getCode
())
.
append
(
","
)
.
append
(
format
).
toString
();
transactionLogPOMap
.
put
(
key
,
transactionLogPO
);
}
...
...
@@ -607,10 +607,10 @@ public class CleanningTransactionLogService {
for
(
int
call
=
0
;
call
<
queryResult
.
size
();
call
++)
{
CallRecord1
callRecord1
=
queryResult
.
get
(
call
);
String
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
(
callRecord1
.
getCreated_at
().
getTime
()));
String
key
=
new
StringBuffer
(
callRecord1
.
getTransactionId
())
.
append
(
StringUtils
.
isNotBlank
(
callRecord1
.
getUuid
())
?
callRecord1
.
getUuid
()
:
""
)
.
append
(
callRecord1
.
getUrlType
())
.
append
(
callRecord1
.
getCode
())
String
key
=
new
StringBuffer
(
callRecord1
.
getTransactionId
())
.
append
(
","
)
.
append
(
StringUtils
.
isNotBlank
(
callRecord1
.
getUuid
())
?
callRecord1
.
getUuid
()
:
""
)
.
append
(
","
)
.
append
(
callRecord1
.
getUrlType
())
.
append
(
","
)
.
append
(
callRecord1
.
getCode
())
.
append
(
","
)
.
append
(
format
).
toString
();
callRecord1Map
.
put
(
key
,
callRecord1
);
}
...
...
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