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
4eaa531e
Commit
4eaa531e
authored
Nov 07, 2019
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志输出
parent
762e934e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+10
-11
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
4eaa531e
...
@@ -607,7 +607,7 @@ public class BaiHangZhuDaiService {
...
@@ -607,7 +607,7 @@ public class BaiHangZhuDaiService {
FileUtils
.
write
(
new
File
(
fileName
+
"_01.txt"
),
JSON
.
toJSONString
(
applyLoanInfo
)+
"\r\n"
,
"UTF-8"
,
true
);
FileUtils
.
write
(
new
File
(
fileName
+
"_01.txt"
),
JSON
.
toJSONString
(
applyLoanInfo
)+
"\r\n"
,
"UTF-8"
,
true
);
//脱敏数据写一份
//脱敏数据写一份
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
applyLoanInfo
,
null
,
null
);
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
starTime
,
applyLoanInfo
,
null
,
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"申请存量数据处理异常, startTime: {} , endTime: {} "
,
starTime
,
endTime
,
e
);
log
.
error
(
"申请存量数据处理异常, startTime: {} , endTime: {} "
,
starTime
,
endTime
,
e
);
...
@@ -678,7 +678,6 @@ public class BaiHangZhuDaiService {
...
@@ -678,7 +678,6 @@ public class BaiHangZhuDaiService {
loanInfozdList
.
addAll
(
loanInfozdListLh
);
loanInfozdList
.
addAll
(
loanInfozdListLh
);
}
}
int
listSize
=
loanInfozdList
!=
null
?
loanInfozdList
.
size
():
0
;
int
listSize
=
loanInfozdList
!=
null
?
loanInfozdList
.
size
():
0
;
log
.
info
(
"All放款存量数据查询结束, listSize : {} , startTime: {} , endTime: {} , 耗时 : {} "
,
listSize
,
starTime
,
endTime
,
((
System
.
currentTimeMillis
()-
sUtc1
)/
1000
)+
".s"
);
log
.
info
(
"All放款存量数据查询结束, listSize : {} , startTime: {} , endTime: {} , 耗时 : {} "
,
listSize
,
starTime
,
endTime
,
((
System
.
currentTimeMillis
()-
sUtc1
)/
1000
)+
".s"
);
...
@@ -692,7 +691,7 @@ public class BaiHangZhuDaiService {
...
@@ -692,7 +691,7 @@ public class BaiHangZhuDaiService {
if
(
relationID
.
startsWith
(
"lhp_"
)){
if
(
relationID
.
startsWith
(
"lhp_"
)){
loanInfozd_tmp
.
setRelationID
(
relationID
.
replace
(
"lhp_"
,
"L"
));
loanInfozd_tmp
.
setRelationID
(
relationID
.
replace
(
"lhp_"
,
"L"
));
}
else
{
}
else
{
log
.
error
(
"量化派助贷TO百行报送-放款返回结果不正确, 发现其他类型的relationID并且长度大于36,relationID
="
+
relationID
+
",loanId="
+
loanInfozd_tmp
.
getLoanId
());
log
.
error
(
"量化派助贷TO百行报送-放款返回结果不正确, 发现其他类型的relationID并且长度大于36,relationID
: {} , startTime: {} , endTime: {} , loanId: {} "
,
relationID
,
starTime
,
endTime
,
loanInfozd_tmp
.
getLoanId
());
continue
;
continue
;
}
}
}
}
...
@@ -716,7 +715,7 @@ public class BaiHangZhuDaiService {
...
@@ -716,7 +715,7 @@ public class BaiHangZhuDaiService {
FileUtils
.
write
(
new
File
(
fileName
+
"_01.txt"
),
JSON
.
toJSONString
(
loanInfoZhuDaiVo
)+
"\r\n"
,
"UTF-8"
,
true
);
FileUtils
.
write
(
new
File
(
fileName
+
"_01.txt"
),
JSON
.
toJSONString
(
loanInfoZhuDaiVo
)+
"\r\n"
,
"UTF-8"
,
true
);
//脱敏数据写一份
//脱敏数据写一份
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
null
,
loanInfoZhuDaiVo
,
null
);
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
starTime
,
null
,
loanInfoZhuDaiVo
,
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"放款存量数据处理异常, startTime: {} , endTime: {} , recordId: {} , loanId: {} "
,
starTime
,
endTime
,
id
,
loanInfoZhuDaiVo
.
getLoanId
(),
e
);
log
.
error
(
"放款存量数据处理异常, startTime: {} , endTime: {} , recordId: {} , loanId: {} "
,
starTime
,
endTime
,
id
,
loanInfoZhuDaiVo
.
getLoanId
(),
e
);
...
@@ -813,7 +812,7 @@ public class BaiHangZhuDaiService {
...
@@ -813,7 +812,7 @@ public class BaiHangZhuDaiService {
FileUtils
.
write
(
new
File
(
fileName
+
"_01.txt"
),
JSON
.
toJSONString
(
repaymentInfo
)+
"\r\n"
,
"UTF-8"
,
true
);
FileUtils
.
write
(
new
File
(
fileName
+
"_01.txt"
),
JSON
.
toJSONString
(
repaymentInfo
)+
"\r\n"
,
"UTF-8"
,
true
);
//脱敏数据写一份
//脱敏数据写一份
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
null
,
null
,
repaymentInfo
);
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
starTime
,
null
,
null
,
repaymentInfo
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -1261,7 +1260,7 @@ public class BaiHangZhuDaiService {
...
@@ -1261,7 +1260,7 @@ public class BaiHangZhuDaiService {
}
}
//用户三要素脱敏后数据写一份
//用户三要素脱敏后数据写一份
private
void
testTuoMinFileWrite
(
String
fileName
,
ApplyLoanInfoZhuDai
bean_a1
,
LoanInfoZhuDaiVo
bean_d2
,
RepaymentInfoZhuDai
bean_d3
)
{
private
void
testTuoMinFileWrite
(
String
fileName
,
String
startDate
,
ApplyLoanInfoZhuDai
bean_a1
,
LoanInfoZhuDaiVo
bean_d2
,
RepaymentInfoZhuDai
bean_d3
)
{
String
pid
=
null
,
mapVal
=
null
,
jsonContext
=
""
;
String
pid
=
null
,
mapVal
=
null
,
jsonContext
=
""
;
try
{
try
{
if
(
bean_a1
!=
null
)
{
if
(
bean_a1
!=
null
)
{
...
@@ -1274,7 +1273,7 @@ public class BaiHangZhuDaiService {
...
@@ -1274,7 +1273,7 @@ public class BaiHangZhuDaiService {
bean_a1
.
setName
(
arry
[
2
]);
bean_a1
.
setName
(
arry
[
2
]);
}
else
{
}
else
{
//addUserMap(pid,mobile,name);
//addUserMap(pid,mobile,name);
log
.
warn
(
" TEST FILE A1 发现其他不在字典中用户,
pid: {} "
,
pid
);
log
.
warn
(
" TEST FILE A1 发现其他不在字典中用户,
startDate: {} , pid: {} "
,
startDate
,
pid
);
}
}
jsonContext
=
JSON
.
toJSONString
(
bean_a1
);
jsonContext
=
JSON
.
toJSONString
(
bean_a1
);
...
@@ -1288,7 +1287,7 @@ public class BaiHangZhuDaiService {
...
@@ -1288,7 +1287,7 @@ public class BaiHangZhuDaiService {
bean_d2
.
setName
(
arry
[
2
]);
bean_d2
.
setName
(
arry
[
2
]);
}
else
{
}
else
{
//addUserMap(pid,mobile,name);
//addUserMap(pid,mobile,name);
log
.
warn
(
" TEST FILE D2 发现其他不在字典中用户,
pid: {} "
,
pid
);
log
.
warn
(
" TEST FILE D2 发现其他不在字典中用户,
startDate: {} , pid: {} "
,
startDate
,
pid
);
}
}
jsonContext
=
JSON
.
toJSONString
(
bean_d2
);
jsonContext
=
JSON
.
toJSONString
(
bean_d2
);
...
@@ -1302,19 +1301,19 @@ public class BaiHangZhuDaiService {
...
@@ -1302,19 +1301,19 @@ public class BaiHangZhuDaiService {
bean_d3
.
setName
(
arry
[
2
]);
bean_d3
.
setName
(
arry
[
2
]);
}
else
{
}
else
{
//addUserMap(pid,mobile,name);
//addUserMap(pid,mobile,name);
log
.
warn
(
" TEST FILE D3 发现其他不在字典中用户,
pid: {} "
,
pid
);
log
.
warn
(
" TEST FILE D3 发现其他不在字典中用户,
startDate: {} , pid: {} "
,
startDate
,
pid
);
}
}
jsonContext
=
JSON
.
toJSONString
(
bean_d3
);
jsonContext
=
JSON
.
toJSONString
(
bean_d3
);
}
else
{
}
else
{
log
.
error
(
" TEST FILE testTuoMinFileWrite()实体对象都为空
."
);
log
.
error
(
" TEST FILE testTuoMinFileWrite()实体对象都为空
, startDate: {} "
,
startDate
);
return
;
return
;
}
}
FileUtils
.
write
(
new
File
(
fileName
),
jsonContext
+
"\r\n"
,
"UTF-8"
,
true
);
FileUtils
.
write
(
new
File
(
fileName
),
jsonContext
+
"\r\n"
,
"UTF-8"
,
true
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
" TEST FILE testTuoMinFileWrite()写入文件异常,
pid: {} "
,
pid
,
e
);
log
.
error
(
" TEST FILE testTuoMinFileWrite()写入文件异常,
startDate: {} , pid: {} "
,
startDate
,
pid
,
e
);
}
}
}
}
...
...
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