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
eeb3110c
Commit
eeb3110c
authored
Dec 27, 2019
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口报送bug
parent
56ef43e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+13
-9
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
eeb3110c
...
...
@@ -337,8 +337,8 @@ public class BaiHangZhuDaiService {
//yyyy-MM-dd
BaiHangTimeRecord
timeRecord
=
BaiHangTimeRecord
.
builder
().
startTime
(
startnyr
).
endTime
(
endnyr
).
build
();
String
resMsg
=
""
;
String
temp_huanKuan
=
"还款D3报送: 查询 %d条(联合贷%d条), 报送成功 %d条; "
;
String
temp_yuQi
=
"逾期D3报送: 查询 %d条(联合贷%d条), 报送成功 %d条; "
;
String
temp_huanKuan
=
"还款D3报送: 查询 %d条(联合贷%d条),
实际 %d条, 跳过 %d条,
报送成功 %d条; "
;
String
temp_yuQi
=
"逾期D3报送: 查询 %d条(联合贷%d条),
实际 %d条, 跳过 %d条,
报送成功 %d条; "
;
for
(
int
j
=
0
;
j
<
2
;
j
++)
{
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
...
...
@@ -361,7 +361,7 @@ public class BaiHangZhuDaiService {
Stopwatch
realTimeOverdueStopWatch4
=
Stopwatch
.
createStarted
();
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdueLh
(
timeRecord
);
log
.
info
(
"量化派助贷TO百行报送-联合贷实时还款逾期, startnyr: {} , endnyr: {} , 大小: {} , 耗时: {} "
,
startnyr
,
endnyr
,
repaymentLoanInfos
.
size
(),
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"量化派助贷TO百行报送-联合贷实时还款逾期, startnyr: {} , endnyr: {} , 大小: {} , 耗时: {} "
,
startnyr
,
endnyr
,
repaymentLoanInfos
Lh
.
size
(),
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
}
...
...
@@ -372,7 +372,9 @@ public class BaiHangZhuDaiService {
repaymentLoanInfos
.
addAll
(
repaymentLoanInfosLh
);
}
AtomicInteger
atomicInteger
=
new
AtomicInteger
();
AtomicInteger
succ_atomicInt
=
new
AtomicInteger
();
AtomicInteger
totail_atomicInt
=
new
AtomicInteger
();
AtomicInteger
tg_atomicInt
=
new
AtomicInteger
();
for
(
int
i
=
0
;
i
<
repaymentLoanInfos
.
size
();
i
++)
{
RepaymentInfoZhuDai
repaymentLoanInfo
=
repaymentLoanInfos
.
get
(
i
);
String
id
=
""
;
...
...
@@ -380,9 +382,11 @@ public class BaiHangZhuDaiService {
try
{
RepaymentInfoZhuDai
repaymentLoanInfo1
=
repaymentLoanInfoDbMapper
.
findLastOne
(
BaiHangRepayment
.
builder
().
loanId
(
repaymentLoanInfo
.
getLoanId
()).
termNo
(
repaymentLoanInfo
.
getTermNo
()).
build
());
if
(
j
>
0
&&
Objects
.
nonNull
(
repaymentLoanInfo1
))
{
tg_atomicInt
.
getAndIncrement
();
log
.
info
(
"量化派助贷TO百行报送-实时还款逾期跳过报送, reqId_log: {} , loanId: {} , termNo: {} , startnyr: {} , endnyr: {} , bean: {} "
,
reqId_log
,
repaymentLoanInfo
.
getLoanId
(),
repaymentLoanInfo
.
getTermNo
(),
startnyr
,
endnyr
,
JSON
.
toJSONString
(
repaymentLoanInfo1
));
continue
;
}
totail_atomicInt
.
getAndIncrement
();
id
=
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
);
try
{
...
...
@@ -404,7 +408,7 @@ public class BaiHangZhuDaiService {
log
.
info
(
"量化派助贷TO百行报送-还款返回结果不正确, 开始时间: {} , 结束时间: {} , reqId_log: {} , recordId: {} , loanId: {} , bean: {} "
,
startnyr
,
endnyr
,
reqId_log
,
id
,
repaymentLoanInfo
.
getLoanId
(),
JSON
.
toJSONString
(
repaymentLoanInfo
));
repaymentLoanInfoDbMapper
.
updateCurrentRecordEnableFalse
(
BaiHangUpDateRecord
.
builder
().
enable
(
"0"
).
recordId
(
id
).
build
());
}
else
{
atomicInteger
.
getAndIncrement
();
succ_atomicInt
.
getAndIncrement
();
}
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送-还款信息异常, reqId_log: {} , recordId: {} , loanId: {} "
,
reqId_log
,
id
,
repaymentLoanInfo
.
getLoanId
(),
e
);
...
...
@@ -412,12 +416,12 @@ public class BaiHangZhuDaiService {
}
if
(
j
==
0
)
{
resMsg
+=
String
.
format
(
temp_huanKuan
,
repaymentLoanInfos
.
size
(),
(
repaymentLoanInfosLh
!=
null
?
repaymentLoanInfosLh
.
size
()
:
0
),
atomicInteger
.
get
());
resMsg
+=
String
.
format
(
temp_huanKuan
,
repaymentLoanInfos
.
size
(),
(
repaymentLoanInfosLh
!=
null
?
repaymentLoanInfosLh
.
size
()
:
0
),
totail_atomicInt
.
get
(),
tg_atomicInt
.
get
(),
succ_atomicInt
.
get
());
}
else
{
resMsg
+=
String
.
format
(
temp_yuQi
,
repaymentLoanInfos
.
size
(),
(
repaymentLoanInfosLh
!=
null
?
repaymentLoanInfosLh
.
size
()
:
0
),
atomicInteger
.
get
());
resMsg
+=
String
.
format
(
temp_yuQi
,
repaymentLoanInfos
.
size
(),
(
repaymentLoanInfosLh
!=
null
?
repaymentLoanInfosLh
.
size
()
:
0
),
totail_atomicInt
.
get
(),
tg_atomicInt
.
get
(),
succ_atomicInt
.
get
());
}
log
.
info
(
"量化派助贷TO百行报送-还款申请完成 J: {} , 开始时间: {} , 结束时间: {} ,
实际大小: {} , 报送成功大小: {} , 耗时: {} "
,
j
,
startnyr
,
endnyr
,
repaymentLoanInfos
.
size
(),
atomicInteger
.
get
(),
(
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"量化派助贷TO百行报送-还款申请完成 J: {} , 开始时间: {} , 结束时间: {} ,
list大小: {} , 实际大小: {} , 跳过: {} , 报送成功大小: {} , 耗时: {} "
,
j
,
startnyr
,
endnyr
,
repaymentLoanInfos
.
size
(),
totail_atomicInt
.
get
(),
tg_atomicInt
.
get
(),
succ_atomicInt
.
get
(),
(
sendWatch
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送-异常 J: {} , 开始时间: {} , 结束时间: {} "
,
j
,
startnyr
,
endnyr
,
e
);
}
...
...
@@ -1051,7 +1055,7 @@ public class BaiHangZhuDaiService {
if
(
erlyDate
.
plusDays
(
counter
-
1
).
compareTo
(
liang_he_dai_start
)
>=
0
){
Stopwatch
realTimeOverdueStopWatch4
=
Stopwatch
.
createStarted
();
repaymentLoanInfosLh
=
repaymentLoanInfoMapper
.
findRealTimeRepayMentOverdueLh
(
timeRecord
);
log
.
info
(
"逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repayment
InfoList
.
size
(),
starTime
,
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
1000
)+
".s"
);
log
.
info
(
"逾期存量-联合贷查询结束, 大小: {} , starTime: {} , 耗时: {} "
,
repayment
LoanInfosLh
.
size
(),
starTime
,
(
realTimeOverdueStopWatch4
.
stop
().
elapsed
(
TimeUnit
.
MILLISECONDS
)/
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