Commit f641dfc1 authored by 郝彦辉's avatar 郝彦辉

D2手动报送工具优化。

parent 64442659
...@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment