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
a8b2d23c
Commit
a8b2d23c
authored
Jan 03, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检测transaction_log重复工具
parent
7a5dd53e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
CleanningTransactionLogService.java
...rt/service/manualTool/CleanningTransactionLogService.java
+8
-8
ManualToolService.java
...antgroup/report/service/manualTool/ManualToolService.java
+14
-3
No files found.
src/main/java/cn/quantgroup/report/service/manualTool/CleanningTransactionLogService.java
View file @
a8b2d23c
...
@@ -513,10 +513,10 @@ public class CleanningTransactionLogService {
...
@@ -513,10 +513,10 @@ public class CleanningTransactionLogService {
for
(
int
call
=
0
;
call
<
queryResult
.
size
();
call
++)
{
for
(
int
call
=
0
;
call
<
queryResult
.
size
();
call
++)
{
CallRecord1
callRecord1
=
queryResult
.
get
(
call
);
CallRecord1
callRecord1
=
queryResult
.
get
(
call
);
String
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
(
callRecord1
.
getCreated_at
().
getTime
()));
String
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
new
Date
(
callRecord1
.
getCreated_at
().
getTime
()));
String
key
=
new
StringBuffer
(
callRecord1
.
getTransactionId
())
String
key
=
new
StringBuffer
(
callRecord1
.
getTransactionId
())
.
append
(
","
)
.
append
(
StringUtils
.
isNotBlank
(
callRecord1
.
getUuid
())
?
callRecord1
.
getUuid
()
:
""
)
.
append
(
StringUtils
.
isNotBlank
(
callRecord1
.
getUuid
())
?
callRecord1
.
getUuid
()
:
""
)
.
append
(
","
)
.
append
(
callRecord1
.
getUrlType
())
.
append
(
callRecord1
.
getUrlType
())
.
append
(
","
)
.
append
(
callRecord1
.
getCode
())
.
append
(
callRecord1
.
getCode
())
.
append
(
","
)
.
append
(
format
).
toString
();
.
append
(
format
).
toString
();
if
(
callRecord1Map
.
containsKey
(
key
)){
if
(
callRecord1Map
.
containsKey
(
key
)){
...
@@ -585,10 +585,10 @@ public class CleanningTransactionLogService {
...
@@ -585,10 +585,10 @@ public class CleanningTransactionLogService {
for
(
int
call
=
0
;
call
<
queryResult
.
size
();
call
++)
{
for
(
int
call
=
0
;
call
<
queryResult
.
size
();
call
++)
{
TransactionLogPO
callRecord1
=
queryResult
.
get
(
call
);
TransactionLogPO
callRecord1
=
queryResult
.
get
(
call
);
String
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
callRecord1
.
getTimeCreated
());
String
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
callRecord1
.
getTimeCreated
());
String
key
=
new
StringBuffer
(
callRecord1
.
getTransactionId
())
String
key
=
new
StringBuffer
(
callRecord1
.
getTransactionId
())
.
append
(
","
)
.
append
(
StringUtils
.
isNotBlank
(
callRecord1
.
getUuid
())
?
callRecord1
.
getUuid
()
:
""
)
.
append
(
StringUtils
.
isNotBlank
(
callRecord1
.
getUuid
())
?
callRecord1
.
getUuid
()
:
""
)
.
append
(
","
)
.
append
(
callRecord1
.
getUrlType
())
.
append
(
callRecord1
.
getUrlType
())
.
append
(
","
)
.
append
(
callRecord1
.
getCode
())
.
append
(
callRecord1
.
getCode
())
.
append
(
","
)
.
append
(
format
).
toString
();
.
append
(
format
).
toString
();
if
(
callRecord1Map
.
containsKey
(
key
)){
if
(
callRecord1Map
.
containsKey
(
key
)){
...
...
src/main/java/cn/quantgroup/report/service/manualTool/ManualToolService.java
View file @
a8b2d23c
...
@@ -2733,7 +2733,18 @@ public class ManualToolService implements CommonSuperService {
...
@@ -2733,7 +2733,18 @@ public class ManualToolService implements CommonSuperService {
}
}
private
static
void
buildSelectSql
()
{
List
<
String
>
oldD3ReqIdFileList
=
ReadOrWriteTxt
.
readTxtList
(
"D:\\JavaTeam\\test\\transaction_call\\01_03\\cf_383.txt"
);
System
.
out
.
printf
(
"开始,list Size="
+
oldD3ReqIdFileList
.
size
());
for
(
String
str:
oldD3ReqIdFileList
){
//599e2b99de5c4959890e65f302b810c9,5c536844-7c11-41de-ad77-6dce26115a5f,BaiRongSpecialList_c,1003,2018-10-20 00:00:00
String
[]
arry
=
str
.
trim
().
split
(
","
);
String
CALL_SQL
=
"select * from call_record where transaction_id ='"
+
arry
[
0
]
+
"' and uuid ='"
+
arry
[
1
]
+
"'"
+
" and url_type ='"
+
arry
[
2
]
+
"' and code ='"
+
arry
[
3
]+
"' UNION ALL \n"
;
System
.
out
.
printf
(
CALL_SQL
);
}
System
.
out
.
printf
(
"结束,list Size="
+
oldD3ReqIdFileList
.
size
());
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
@@ -2806,10 +2817,10 @@ public class ManualToolService implements CommonSuperService {
...
@@ -2806,10 +2817,10 @@ public class ManualToolService implements CommonSuperService {
//build_d2_1226();
//build_d2_1226();
//transaction_call();
//transaction_call();
transaction_call2
();
//
transaction_call2();
//transaction_call3();
//transaction_call3();
buildSelectSql
();
...
...
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