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
aae949ad
Commit
aae949ad
authored
Dec 24, 2019
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
D3筛选替换reqId
parent
aecddf5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
ManualToolService.java
...antgroup/report/service/manualTool/ManualToolService.java
+29
-3
No files found.
src/main/java/cn/quantgroup/report/service/manualTool/ManualToolService.java
View file @
aae949ad
...
...
@@ -1742,7 +1742,7 @@ public class ManualToolService implements CommonSuperService {
}
}
//===============================================================================================
p
ublic
static
void
d3_logicerror_20191223
()
{
p
rivate
static
void
d3_logicerror_20191223
()
{
List
<
String
>
logicerror_other_List
=
ReadOrWriteTxt
.
readTxtList
(
"D:\\用户目录\\Downloads\\生产p2p新\\log\\all_err_other_reqID.tmp"
);
Map
<
String
,
String
>
err_other_reqIdMap
=
new
HashMap
<>(
logicerror_other_List
.
size
());
int
c1
=
0
;
...
...
@@ -1886,7 +1886,7 @@ public class ManualToolService implements CommonSuperService {
for
(
String
key
:
oldD3_reqIdMap
.
keySet
()){
log
.
info
(
"oldD3_reqIdMap wr:"
+(
wr
++));
try
{
FileUtils
.
write
(
new
File
(
mapNotEmptyFile
),
oldD3_reqIdMap
.
get
(
key
)+
"="
+
oldD3_reqIdMap
+
"\r\n"
,
"UTF-8"
,
true
);
FileUtils
.
write
(
new
File
(
mapNotEmptyFile
),
key
+
"="
+
oldD3_reqIdMap
.
get
(
key
)
+
"\r\n"
,
"UTF-8"
,
true
);
}
catch
(
IOException
e
)
{
log
.
error
(
"oldD3_reqIdMap 写入 error "
,
e
);
}
...
...
@@ -1901,6 +1901,30 @@ public class ManualToolService implements CommonSuperService {
}
private
static
void
build_key
()
{
List
<
String
>
d3lineList
=
ReadOrWriteTxt
.
readTxtList
(
"D:\\用户目录\\Downloads\\生产p2p新\\build_ok\\err_D3_024,D3_044\\test\\oldList75.txt"
);
for
(
int
i
=
0
;
i
<
d3lineList
.
size
();
i
++)
{
try
{
String
d3JsonStr
=
d3lineList
.
get
(
i
);
if
(
d3JsonStr
.
length
()
<
30
)
{
continue
;
}
RepaymentInfoZhuDai
repaymentLoanInfo
=
new
Gson
().
fromJson
(
d3JsonStr
,
new
TypeToken
<
RepaymentInfoZhuDai
>()
{
}.
getType
());
String
key_replace
=
repaymentLoanInfo
.
getLoanId
()
+
"|"
+
repaymentLoanInfo
.
getTermNo
()
+
"|"
+
repaymentLoanInfo
.
getStatusConfirmAt
()
+
"|ts:"
+
repaymentLoanInfo
.
getTermStatus
()
+
"|ls:"
+
repaymentLoanInfo
.
getLoanStatus
()
+
"="
+
repaymentLoanInfo
.
getReqID
();
FileUtils
.
write
(
new
File
(
"D:\\用户目录\\Downloads\\生产p2p新\\build_ok\\err_D3_024,D3_044\\test\\key_oldList75.txt"
),
key_replace
+
"\n"
,
"UTF-8"
,
true
);
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
"build_key() D3 data error,"
+
e
.
toString
());
}
}
System
.
out
.
println
(
"build_key() D3 end."
);
}
public
static
void
main
(
String
[]
args
)
{
// List<String> lineList = ReadOrWriteTxt.readTxtList("D:\\用户目录\\Downloads\\D2_M_01.txt");
// System.out.println("lineList:"+lineList.size());
...
...
@@ -1952,7 +1976,9 @@ public class ManualToolService implements CommonSuperService {
"D:\\JavaTeam\\test\\rm_byPhone_err.txt");*/
d3_logicerror_20191223
();
//d3_logicerror_20191223();
build_key
();
}
...
...
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