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
4abe36b6
Commit
4abe36b6
authored
Nov 06, 2019
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志输出
parent
211523af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
37 deletions
+34
-37
QuantGroupZhuDaiReportToBaiHang.java
...uantgroup/report/job/QuantGroupZhuDaiReportToBaiHang.java
+1
-1
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+33
-36
No files found.
src/main/java/cn/quantgroup/report/job/QuantGroupZhuDaiReportToBaiHang.java
View file @
4abe36b6
...
@@ -39,7 +39,7 @@ public class QuantGroupZhuDaiReportToBaiHang {
...
@@ -39,7 +39,7 @@ public class QuantGroupZhuDaiReportToBaiHang {
private
BaiHangZhuDaiService
baiHangZhuDaiService
;
private
BaiHangZhuDaiService
baiHangZhuDaiService
;
@Async
@Async
@Scheduled
(
cron
=
"0 0 5 * * ?"
)
/* @Scheduled(cron = "0 0 5 * * ?")*/
public
void
startZhuDaiReport
(){
public
void
startZhuDaiReport
(){
if
(
increment
()){
if
(
increment
()){
redisTemplate
.
expire
(
Constant
.
QG_ZHU_DAI_REPORT_LOCK_KEY
,
10
,
TimeUnit
.
SECONDS
);
redisTemplate
.
expire
(
Constant
.
QG_ZHU_DAI_REPORT_LOCK_KEY
,
10
,
TimeUnit
.
SECONDS
);
...
...
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
4abe36b6
...
@@ -389,18 +389,17 @@ public class BaiHangZhuDaiService {
...
@@ -389,18 +389,17 @@ public class BaiHangZhuDaiService {
handApplys
=
FileUtils
.
readLines
(
new
File
(
baihangHandA1DataUrl
),
"utf-8"
);
handApplys
=
FileUtils
.
readLines
(
new
File
(
baihangHandA1DataUrl
),
"utf-8"
);
}
else
{
}
else
{
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
log
.
warn
(
"
百行征信助贷模式
手动报送贷款申请错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
log
.
warn
(
"
众信利民助贷模式TO百行
手动报送贷款申请错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
return
;
return
;
}
else
{
}
else
{
handApplys
=
paramJsonStr
;
handApplys
=
paramJsonStr
;
}
}
}
}
//log.info("百行征信助贷模式报送贷款申请数据, isReadFile: {} , handApplys: {} ", isReadFile, JSON.toJSONString(handApplys));
log
.
info
(
"百行征信助贷模式报送贷款申请数据, isReadFile: {} , handApplys: {} "
,
isReadFile
,
JSON
.
toJSONString
(
handApplys
));
for
(
int
i
=
0
;
i
<
handApplys
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
handApplys
.
size
();
i
++){
//try {
//try {
ApplyLoanInfoZhuDai
applyInfo
=
new
Gson
().
fromJson
(
handApplys
.
get
(
i
),
new
TypeToken
<
ApplyLoanInfoZhuDai
>(){}.
getType
());
ApplyLoanInfoZhuDai
applyInfo
=
new
Gson
().
fromJson
(
handApplys
.
get
(
i
),
new
TypeToken
<
ApplyLoanInfoZhuDai
>(){}.
getType
());
log
.
info
(
"
百行征信助贷模式报送贷款申请数据
单个数据, {}"
,
JSON
.
toJSONString
(
applyInfo
));
log
.
info
(
"
众信利民助贷模式TO百行手动报送申请
单个数据, {}"
,
JSON
.
toJSONString
(
applyInfo
));
applyInfo
.
setName
(
interfaceUploadClient
(
applyInfo
.
getName
()));
applyInfo
.
setName
(
interfaceUploadClient
(
applyInfo
.
getName
()));
applyInfo
.
setMobile
(
interfaceUploadClient
(
applyInfo
.
getMobile
()));
applyInfo
.
setMobile
(
interfaceUploadClient
(
applyInfo
.
getMobile
()));
...
@@ -409,12 +408,12 @@ public class BaiHangZhuDaiService {
...
@@ -409,12 +408,12 @@ public class BaiHangZhuDaiService {
/*if (Objects.isNull(resultStr) || !(resultStr.contains("queryHistory") && resultStr.contains("nonRevolvingLoan") && resultStr.contains("revolvingLoan"))) {
/*if (Objects.isNull(resultStr) || !(resultStr.contains("queryHistory") && resultStr.contains("nonRevolvingLoan") && resultStr.contains("revolvingLoan"))) {
log.info("量化派助贷TO百行报送-贷款申请返回结果不正确, loanId: {} ", applyInfo.getLoanId());
log.info("量化派助贷TO百行报送-贷款申请返回结果不正确, loanId: {} ", applyInfo.getLoanId());
}*/
}*/
log
.
info
(
"
百行征信助贷模式
手动报送贷款申请记录 json: {} , result: {} "
,
JSON
.
toJSONString
(
applyInfo
),
resultStr
);
log
.
info
(
"
众信利民助贷模式TO百行
手动报送贷款申请记录 json: {} , result: {} "
,
JSON
.
toJSONString
(
applyInfo
),
resultStr
);
/*} catch (Exception e) {
/*} catch (Exception e) {
log.error("百行征信助贷模式手动报送贷款申请记录异常", e);
log.error("百行征信助贷模式手动报送贷款申请记录异常", e);
}*/
}*/
}
}
log
.
info
(
"
百行征信助贷模式
手动报送贷款申请结束, 大小: {} , 耗时: {} "
,
handApplys
.
size
(),
((
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
));
log
.
info
(
"
众信利民助贷模式TO百行
手动报送贷款申请结束, 大小: {} , 耗时: {} "
,
handApplys
.
size
(),
((
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
));
}
}
/**
/**
...
@@ -431,18 +430,17 @@ public class BaiHangZhuDaiService {
...
@@ -431,18 +430,17 @@ public class BaiHangZhuDaiService {
handLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD2DataUrl
),
"utf-8"
);
handLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD2DataUrl
),
"utf-8"
);
}
else
{
}
else
{
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
log
.
warn
(
"
百行征信助贷模式
报送放款数据错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
log
.
warn
(
"
众信利民助贷模式TO百行手动
报送放款数据错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
return
;
return
;
}
else
{
}
else
{
handLoanInfos
=
paramJsonStr
;
handLoanInfos
=
paramJsonStr
;
}
}
}
}
log
.
info
(
"百行征信助贷模式报
送放款数据, {}"
,
JSON
.
toJSONString
(
handLoanInfos
));
//log.info("众信利民助贷模式TO百行手动报送
送放款数据, {}", JSON.toJSONString(handLoanInfos));
for
(
int
i
=
0
;
i
<
handLoanInfos
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
handLoanInfos
.
size
();
i
++){
LoanInfoZhuDai
loanInfozd_tmp
=
new
Gson
().
fromJson
(
handLoanInfos
.
get
(
i
),
new
TypeToken
<
LoanInfoZhuDai
>(){}.
getType
());
LoanInfoZhuDai
loanInfozd_tmp
=
new
Gson
().
fromJson
(
handLoanInfos
.
get
(
i
),
new
TypeToken
<
LoanInfoZhuDai
>(){}.
getType
());
log
.
info
(
"
百行征信助贷模式报送放款数据
单个数据, {}"
,
JSON
.
toJSONString
(
loanInfozd_tmp
));
log
.
info
(
"
众信利民助贷模式TO百行手动报送放款
单个数据, {}"
,
JSON
.
toJSONString
(
loanInfozd_tmp
));
String
loanInfoReqId
=
loanInfozd_tmp
.
getReqID
();
String
loanInfoReqId
=
loanInfozd_tmp
.
getReqID
();
if
(
loanInfozd_tmp
.
getTotalTerm
()
>
1
){
if
(
loanInfozd_tmp
.
getTotalTerm
()
>
1
){
...
@@ -457,7 +455,7 @@ public class BaiHangZhuDaiService {
...
@@ -457,7 +455,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="
+
relationID
+
",loanId="
+
loanInfozd_tmp
.
getLoanId
());
continue
;
continue
;
}
}
}
}
...
@@ -467,7 +465,7 @@ public class BaiHangZhuDaiService {
...
@@ -467,7 +465,7 @@ public class BaiHangZhuDaiService {
loanInfozd_tmp
.
setRecordId
(
loanInfozd_tmp
.
getReqID
());
loanInfozd_tmp
.
setRecordId
(
loanInfozd_tmp
.
getReqID
());
loanInfoDbMapper
.
saveLoanInfoRecordLog
(
loanInfozd_tmp
);
loanInfoDbMapper
.
saveLoanInfoRecordLog
(
loanInfozd_tmp
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
"
量化派助贷TO百行
报送-放款申请保存记录失败"
,
e
);
log
.
error
(
"
众信利民助贷模式TO百行手动
报送-放款申请保存记录失败"
,
e
);
}
}
loanInfozd_tmp
.
setRecordId
(
null
);
loanInfozd_tmp
.
setRecordId
(
null
);
...
@@ -481,9 +479,9 @@ public class BaiHangZhuDaiService {
...
@@ -481,9 +479,9 @@ public class BaiHangZhuDaiService {
loanInfo
.
setPid
(
interfaceUploadClient
(
loanInfo
.
getPid
()));
loanInfo
.
setPid
(
interfaceUploadClient
(
loanInfo
.
getPid
()));
String
resultStr
=
iHttpService
.
postBaiHang
(
baiHangLoanInfoUrl
,
getHeader
(),
JSON
.
toJSONString
(
loanInfo
));
String
resultStr
=
iHttpService
.
postBaiHang
(
baiHangLoanInfoUrl
,
getHeader
(),
JSON
.
toJSONString
(
loanInfo
));
log
.
info
(
"
北京众信利民助贷模式TO百行征信报送放款记录(手动)
loanId: {} , bean: {} , result: {} "
,
loanInfo
.
getLoanId
(),
JSON
.
toJSONString
(
loanInfo
),
resultStr
);
log
.
info
(
"
众信利民助贷模式TO百行手动报送放款记录
loanId: {} , bean: {} , result: {} "
,
loanInfo
.
getLoanId
(),
JSON
.
toJSONString
(
loanInfo
),
resultStr
);
}
}
log
.
info
(
"
北京众信利民助贷模式TO百行征信报送放款记录(手动)
结束, 大小: {} , 耗时: {} "
,
handLoanInfos
.
size
(),
((
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
));
log
.
info
(
"
众信利民助贷模式TO百行手动报送放款记录
结束, 大小: {} , 耗时: {} "
,
handLoanInfos
.
size
(),
((
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
));
}
}
...
@@ -501,7 +499,7 @@ public class BaiHangZhuDaiService {
...
@@ -501,7 +499,7 @@ public class BaiHangZhuDaiService {
repaymentLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD3DataUrl
),
"utf-8"
);
repaymentLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD3DataUrl
),
"utf-8"
);
}
else
{
}
else
{
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
log
.
warn
(
"
百行征信助贷模式
报送还款数据错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
log
.
warn
(
"
众信利民助贷模式TO百行手动
报送还款数据错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
return
;
return
;
}
else
{
}
else
{
repaymentLoanInfos
=
paramJsonStr
;
repaymentLoanInfos
=
paramJsonStr
;
...
@@ -509,16 +507,16 @@ public class BaiHangZhuDaiService {
...
@@ -509,16 +507,16 @@ public class BaiHangZhuDaiService {
}
}
//try {
//try {
log
.
info
(
"
百行征信助贷模式
报送还款数据, {}"
,
JSON
.
toJSONString
(
repaymentLoanInfos
));
log
.
info
(
"
众信利民助贷模式TO百行
报送还款数据, {}"
,
JSON
.
toJSONString
(
repaymentLoanInfos
));
for
(
int
i
=
0
;
i
<
repaymentLoanInfos
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
repaymentLoanInfos
.
size
();
i
++){
RepaymentInfoZhuDai
repaymentLoanInfo
=
new
Gson
().
fromJson
(
repaymentLoanInfos
.
get
(
i
),
new
TypeToken
<
RepaymentInfoZhuDai
>(){}.
getType
());
RepaymentInfoZhuDai
repaymentLoanInfo
=
new
Gson
().
fromJson
(
repaymentLoanInfos
.
get
(
i
),
new
TypeToken
<
RepaymentInfoZhuDai
>(){}.
getType
());
log
.
info
(
"
百行征信助贷模式
报送还款数据单个数据, {}"
,
JSON
.
toJSONString
(
repaymentLoanInfo
));
log
.
info
(
"
众信利民助贷模式TO百行手动
报送还款数据单个数据, {}"
,
JSON
.
toJSONString
(
repaymentLoanInfo
));
try
{
try
{
repaymentLoanInfo
.
setRecordId
(
repaymentLoanInfo
.
getReqID
());
repaymentLoanInfo
.
setRecordId
(
repaymentLoanInfo
.
getReqID
());
repaymentLoanInfoDbMapper
.
saveRepaymentLoanInfoLog
(
repaymentLoanInfo
);
repaymentLoanInfoDbMapper
.
saveRepaymentLoanInfoLog
(
repaymentLoanInfo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"
量化派助贷TO百行报送-实时
还款保存记录异常"
,
e
);
log
.
error
(
"
众信利民助贷模式TO百行手动报送
还款保存记录异常"
,
e
);
}
}
repaymentLoanInfo
.
setRecordId
(
null
);
repaymentLoanInfo
.
setRecordId
(
null
);
...
@@ -527,12 +525,12 @@ public class BaiHangZhuDaiService {
...
@@ -527,12 +525,12 @@ public class BaiHangZhuDaiService {
repaymentLoanInfo
.
setMobile
(
interfaceUploadClient
(
repaymentLoanInfo
.
getMobile
()));
repaymentLoanInfo
.
setMobile
(
interfaceUploadClient
(
repaymentLoanInfo
.
getMobile
()));
String
resultStr
=
iHttpService
.
postBaiHang
(
baiHangRepayMentLoanInfoUrl
,
getHeader
(),
JSON
.
toJSONString
(
repaymentLoanInfo
));
String
resultStr
=
iHttpService
.
postBaiHang
(
baiHangRepayMentLoanInfoUrl
,
getHeader
(),
JSON
.
toJSONString
(
repaymentLoanInfo
));
log
.
info
(
"
百行征信助贷模式
手动报送还款记录 json: {} , result: {} "
,
JSON
.
toJSONString
(
repaymentLoanInfo
),
resultStr
);
log
.
info
(
"
众信利民助贷模式TO百行
手动报送还款记录 json: {} , result: {} "
,
JSON
.
toJSONString
(
repaymentLoanInfo
),
resultStr
);
}
}
/*} catch (Exception e) {
/*} catch (Exception e) {
log.error("百行征信助贷模式手动报送还款异常", e);
log.error("百行征信助贷模式手动报送还款异常", e);
}*/
}*/
log
.
info
(
"
百行征信助贷模式
手动报送还款记录结束, 大小: {} , 耗时: {} "
,
repaymentLoanInfos
.
size
(),
((
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
));
log
.
info
(
"
众信利民助贷模式TO百行
手动报送还款记录结束, 大小: {} , 耗时: {} "
,
repaymentLoanInfos
.
size
(),
((
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
));
}
}
//-----------------------------------------------存量整理---------------------------------------------------------------------
//-----------------------------------------------存量整理---------------------------------------------------------------------
...
@@ -577,11 +575,11 @@ public class BaiHangZhuDaiService {
...
@@ -577,11 +575,11 @@ public class BaiHangZhuDaiService {
Stopwatch
queryWatch1
=
Stopwatch
.
createStarted
();
Stopwatch
queryWatch1
=
Stopwatch
.
createStarted
();
List
<
ApplyLoanInfoZhuDai
>
applyLoanInfoList
=
applyLoanInfoMapper
.
findRealTimeApplyLoanZhuDai
(
timeRecord
);
List
<
ApplyLoanInfoZhuDai
>
applyLoanInfoList
=
applyLoanInfoMapper
.
findRealTimeApplyLoanZhuDai
(
timeRecord
);
log
.
info
(
"
百行助贷
申请存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
applyLoanInfoList
.
size
(),
starTime
,
(
queryWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"申请存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
applyLoanInfoList
.
size
(),
starTime
,
(
queryWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
Stopwatch
queryWatch2
=
Stopwatch
.
createStarted
();
Stopwatch
queryWatch2
=
Stopwatch
.
createStarted
();
List
<
ApplyLoanInfoZhuDai
>
applyLoanInfosLh
=
applyLoanInfoMapper
.
findRealTimeApplyLoanZhuDaiLh
();
List
<
ApplyLoanInfoZhuDai
>
applyLoanInfosLh
=
applyLoanInfoMapper
.
findRealTimeApplyLoanZhuDaiLh
();
log
.
info
(
"
百行助贷
申请存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
applyLoanInfosLh
.
size
(),
starTime
,
(
queryWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"申请存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
applyLoanInfosLh
.
size
(),
starTime
,
(
queryWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
if
(
applyLoanInfoList
==
null
){
if
(
applyLoanInfoList
==
null
){
applyLoanInfoList
=
new
ArrayList
<
ApplyLoanInfoZhuDai
>();
applyLoanInfoList
=
new
ArrayList
<
ApplyLoanInfoZhuDai
>();
...
@@ -590,9 +588,8 @@ public class BaiHangZhuDaiService {
...
@@ -590,9 +588,8 @@ public class BaiHangZhuDaiService {
applyLoanInfoList
.
addAll
(
applyLoanInfosLh
);
applyLoanInfoList
.
addAll
(
applyLoanInfosLh
);
}
}
int
listSize
=
applyLoanInfoList
!=
null
?
applyLoanInfoList
.
size
():
0
;
int
listSize
=
applyLoanInfoList
!=
null
?
applyLoanInfoList
.
size
():
0
;
log
.
info
(
"
百行-助贷
申请存量数据查询结束, 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"
);
String
upladTs
=
LocalDateTime
.
now
().
toString
().
substring
(
0
,
19
);
String
upladTs
=
LocalDateTime
.
now
().
toString
().
substring
(
0
,
19
);
for
(
int
i
=
0
;
i
<
applyLoanInfoList
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
applyLoanInfoList
.
size
();
i
++)
{
...
@@ -607,7 +604,7 @@ public class BaiHangZhuDaiService {
...
@@ -607,7 +604,7 @@ public class BaiHangZhuDaiService {
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
applyLoanInfo
,
null
,
null
);
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
applyLoanInfo
,
null
,
null
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"
百行-助贷
申请存量数据处理异常, startTime: {} , endTime: {} "
,
starTime
,
endTime
,
e
);
log
.
error
(
"申请存量数据处理异常, startTime: {} , endTime: {} "
,
starTime
,
endTime
,
e
);
}
}
}
}
...
@@ -657,10 +654,10 @@ public class BaiHangZhuDaiService {
...
@@ -657,10 +654,10 @@ public class BaiHangZhuDaiService {
Stopwatch
queryWatch1
=
Stopwatch
.
createStarted
();
Stopwatch
queryWatch1
=
Stopwatch
.
createStarted
();
List
<
LoanInfoZhuDai
>
loanInfozdList
=
loanInfoMapper
.
findRealTimeLoanInfoZhuDai
(
timeRecord
);
List
<
LoanInfoZhuDai
>
loanInfozdList
=
loanInfoMapper
.
findRealTimeLoanInfoZhuDai
(
timeRecord
);
log
.
info
(
"
百行助贷
放款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
loanInfozdList
.
size
(),
starTime
,
(
queryWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"放款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
loanInfozdList
.
size
(),
starTime
,
(
queryWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
Stopwatch
queryWatch2
=
Stopwatch
.
createStarted
();
Stopwatch
queryWatch2
=
Stopwatch
.
createStarted
();
List
<
LoanInfoZhuDai
>
loanInfozdListLh
=
loanInfoMapper
.
findRealTimeLoanInfoZhuDaiLh
();
List
<
LoanInfoZhuDai
>
loanInfozdListLh
=
loanInfoMapper
.
findRealTimeLoanInfoZhuDaiLh
();
log
.
info
(
"
百行助贷
放款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
loanInfozdListLh
.
size
(),
starTime
,
(
queryWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"放款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
loanInfozdListLh
.
size
(),
starTime
,
(
queryWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
if
(
loanInfozdList
==
null
){
if
(
loanInfozdList
==
null
){
loanInfozdList
=
new
ArrayList
<
LoanInfoZhuDai
>();
loanInfozdList
=
new
ArrayList
<
LoanInfoZhuDai
>();
}
}
...
@@ -670,7 +667,7 @@ public class BaiHangZhuDaiService {
...
@@ -670,7 +667,7 @@ public class BaiHangZhuDaiService {
int
listSize
=
loanInfozdList
!=
null
?
loanInfozdList
.
size
():
0
;
int
listSize
=
loanInfozdList
!=
null
?
loanInfozdList
.
size
():
0
;
log
.
info
(
"
百行-助贷
放款存量数据查询结束, 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"
);
if
(
listSize
>
0
){
if
(
listSize
>
0
){
for
(
int
i
=
0
;
i
<
listSize
;
i
++)
{
for
(
int
i
=
0
;
i
<
listSize
;
i
++)
{
...
@@ -709,7 +706,7 @@ public class BaiHangZhuDaiService {
...
@@ -709,7 +706,7 @@ public class BaiHangZhuDaiService {
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
null
,
loanInfoZhuDaiVo
,
null
);
testTuoMinFileWrite
(
fileName
+
"_TEST_01.txt"
,
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
);
}
}
}
}
}
}
...
@@ -766,11 +763,11 @@ public class BaiHangZhuDaiService {
...
@@ -766,11 +763,11 @@ public class BaiHangZhuDaiService {
Stopwatch
realTimeStopWatch1
=
Stopwatch
.
createStarted
();
Stopwatch
realTimeStopWatch1
=
Stopwatch
.
createStarted
();
repaymentInfoList
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentInfo
(
timeRecord
);
repaymentInfoList
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentInfo
(
timeRecord
);
log
.
info
(
"
百行助贷
还款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeStopWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"还款存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeStopWatch1
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
Stopwatch
realTimeStopWatch2
=
Stopwatch
.
createStarted
();
Stopwatch
realTimeStopWatch2
=
Stopwatch
.
createStarted
();
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentInfoLh
(
timeRecord
);
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentInfoLh
(
timeRecord
);
log
.
info
(
"
百行助贷
还款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentLoanInfosLh
.
size
(),
starTime
,
(
realTimeStopWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"还款存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentLoanInfosLh
.
size
(),
starTime
,
(
realTimeStopWatch2
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
}
else
{
}
else
{
/*if(erlyDate.plusDays(counter-1).compareTo(yq_start) >= 0){
/*if(erlyDate.plusDays(counter-1).compareTo(yq_start) >= 0){
Stopwatch stopwatch = Stopwatch.createStarted();
Stopwatch stopwatch = Stopwatch.createStarted();
...
@@ -780,11 +777,11 @@ public class BaiHangZhuDaiService {
...
@@ -780,11 +777,11 @@ public class BaiHangZhuDaiService {
Stopwatch
realTimeOverdueStopWatch3
=
Stopwatch
.
createStarted
();
Stopwatch
realTimeOverdueStopWatch3
=
Stopwatch
.
createStarted
();
repaymentInfoList
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdue
(
timeRecord
);
repaymentInfoList
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdue
(
timeRecord
);
log
.
info
(
"
百行助贷
逾期存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeOverdueStopWatch3
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"逾期存量-非联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeOverdueStopWatch3
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
Stopwatch
realTimeOverdueStopWatch4
=
Stopwatch
.
createStarted
();
Stopwatch
realTimeOverdueStopWatch4
=
Stopwatch
.
createStarted
();
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdueLh
(
timeRecord
);
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdueLh
(
timeRecord
);
log
.
info
(
"
百行助贷
逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repaymentInfoList
.
size
(),
starTime
,
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
}
}
if
(
repaymentInfoList
==
null
){
if
(
repaymentInfoList
==
null
){
...
@@ -806,14 +803,14 @@ public class BaiHangZhuDaiService {
...
@@ -806,14 +803,14 @@ public class BaiHangZhuDaiService {
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"
百行-助贷
还款存量数据处理异常, startTime: {} , endTime: {} , type: {} "
,
starTime
,
endTime
,
type
,
e
);
log
.
error
(
"还款存量数据处理异常, startTime: {} , endTime: {} , type: {} "
,
starTime
,
endTime
,
type
,
e
);
}
}
//打印日志
//打印日志
if
(
type
==
0
)
{
if
(
type
==
0
)
{
log
.
info
(
"
百行-助贷
还款整理结束, startTime: {} , endTime: {} , 大小: {} , 总耗时: {} "
,
starTime
,
endTime
,
repaymentInfoList
.
size
(),
((
System
.
currentTimeMillis
()-
log_stUtc
)/
1000
)+
".s"
);
log
.
info
(
"还款整理结束, startTime: {} , endTime: {} , 大小: {} , 总耗时: {} "
,
starTime
,
endTime
,
repaymentInfoList
.
size
(),
((
System
.
currentTimeMillis
()-
log_stUtc
)/
1000
)+
".s"
);
}
else
{
}
else
{
log
.
info
(
"
百行-助贷
逾期理结束, startTime: {} , endTime: {} , 大小: {} , 总耗时: {} "
,
starTime
,
endTime
,
repaymentInfoList
.
size
(),
((
System
.
currentTimeMillis
()-
log_stUtc
)/
1000
)+
".s"
);
log
.
info
(
"逾期理结束, startTime: {} , endTime: {} , 大小: {} , 总耗时: {} "
,
starTime
,
endTime
,
repaymentInfoList
.
size
(),
((
System
.
currentTimeMillis
()-
log_stUtc
)/
1000
)+
".s"
);
}
}
}
}
...
...
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