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
f641dfc1
Commit
f641dfc1
authored
Jan 13, 2020
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
D2手动报送工具优化。
parent
64442659
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+28
-0
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
f641dfc1
...
@@ -650,6 +650,34 @@ public class BaiHangZhuDaiService {
...
@@ -650,6 +650,34 @@ public class BaiHangZhuDaiService {
loanInfozd_tmp
.
setInstitutionalFundingPartnerLoanID
(
businessJson
.
containsKey
(
"institutionalFundingPartnerLoanID"
)
?
businessJson
.
getString
(
"institutionalFundingPartnerLoanID"
)
:
null
);
loanInfozd_tmp
.
setInstitutionalFundingPartnerLoanID
(
businessJson
.
containsKey
(
"institutionalFundingPartnerLoanID"
)
?
businessJson
.
getString
(
"institutionalFundingPartnerLoanID"
)
:
null
);
loanInfozd_tmp
.
setOrderID
(
businessJson
.
containsKey
(
"orderID"
)
?
businessJson
.
getString
(
"orderID"
)
:
null
);
loanInfozd_tmp
.
setOrderID
(
businessJson
.
containsKey
(
"orderID"
)
?
businessJson
.
getString
(
"orderID"
)
:
null
);
loanInfozd_tmp
.
setPreCreditLimit
(
businessJson
.
containsKey
(
"preCreditLimit"
)
?
businessJson
.
getBigDecimal
(
"preCreditLimit"
)
:
null
);
loanInfozd_tmp
.
setPreCreditLimit
(
businessJson
.
containsKey
(
"preCreditLimit"
)
?
businessJson
.
getBigDecimal
(
"preCreditLimit"
)
:
null
);
}
else
{
if
(
StringUtils
.
isEmpty
(
loanInfozd_tmp
.
getTargetRepayDateList
())){
List
<
String
>
targetRepaymentDayList
=
loanInfoMapper
.
findTargetRepaymentDayList
(
loanInfozd_tmp
.
getReqID
());
if
(
targetRepaymentDayList
!=
null
&&
targetRepaymentDayList
.
size
()>
0
){
loanInfozd_tmp
.
setTargetRepayDateList
(
String
.
join
(
","
,
targetRepaymentDayList
));
}
else
{
log
.
warn
(
"助贷模式D2手动报送-比较还款总期数&账单日列表, loanId : {} , lototalTerm: {} , reqId: {} ,targetRepaymentDayList is null."
,
loanInfozd_tmp
.
getLoanId
(),
loanInfozd_tmp
.
getTotalTerm
(),
loanInfozd_tmp
.
getReqID
());
}
}
String
relationID
=
loanInfozd_tmp
.
getRelationID
();
if
(
relationID
!=
null
){
if
(
relationID
.
length
()>
36
){
//长度[1,36]
//lhp_1911049771615765816566b49a2db1c429
if
(
relationID
.
startsWith
(
"lhp_"
)){
String
tmp
=
relationID
.
substring
(
4
,
relationID
.
length
());
if
(
tmp
.
length
()>
35
){
//lhp_1909279744718808613622e008da4c110000
loanInfozd_tmp
.
setRelationID
(
"H"
+
tmp
.
substring
(
0
,
35
));
}
else
{
loanInfozd_tmp
.
setRelationID
(
"L"
+
tmp
);
}
}
else
{
log
.
warn
(
"助贷模式D2手动报送-数据不正确, 发现其他类型的relationID并且长度大于36, relationID: {} , reqId: {} "
,
relationID
,
loanInfozd_tmp
.
getReqID
());
loanInfozd_tmp
.
setRelationID
(
"X"
+
relationID
.
substring
(
0
,
35
));
}
}
}
}
}
log
.
info
(
"众信利民助贷模式TO百行手动报送放款单个数据, {}"
,
JSON
.
toJSONString
(
loanInfozd_tmp
));
log
.
info
(
"众信利民助贷模式TO百行手动报送放款单个数据, {}"
,
JSON
.
toJSONString
(
loanInfozd_tmp
));
...
...
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