|
@@ -718,10 +718,10 @@ public class PaymentApplyServiceImpl extends ServiceImpl<PaymentApplyMapper, Pay
|
|
|
LoanApplyResp loanApplyResp = withdrawApplyBySmb(financingBasicInfo, reviewFinancingInfo);
|
|
|
//保存资方放款信息
|
|
|
saveFinancingLoanInfo(financingBasicInfo, reviewFinancingInfo, loanApplyResp);
|
|
|
-// if ("02".equals(loanApplyResp.getStatus())) {
|
|
|
-// //成功,向sop推送融资信息
|
|
|
-// financingToSop(financingBasicInfo, ConstantUtil.JIANGSU_SUSHANG_BANK, loanApplyResp.getPayoutDate());
|
|
|
-// }
|
|
|
+ if ("02".equals(loanApplyResp.getStatus())) {
|
|
|
+ //成功,向sop推送融资信息
|
|
|
+ financingToSop(financingBasicInfo, ConstantUtil.JIANGSU_SUSHANG_BANK, loanApplyResp.getPayoutDate());
|
|
|
+ }
|
|
|
} else {
|
|
|
//向sop推送融资信息
|
|
|
financingToSop(financingBasicInfo, null, null);
|
|
@@ -820,8 +820,11 @@ public class PaymentApplyServiceImpl extends ServiceImpl<PaymentApplyMapper, Pay
|
|
|
quotaDisburseReport.setCustomerId(ConstantUtil.QUOTA_DISBURSE_REPORT_CUSTOMER_ID_SUSHANG);
|
|
|
//如果资方是苏商银行、需要添加收放款计划,再融资计划
|
|
|
//调用苏商还款计划查询接口
|
|
|
- //todo 获取openId
|
|
|
- String openId = "";
|
|
|
+ //获取openId
|
|
|
+ FinancingFromInvestorsNotice notice = reviewQuotaDisburseService.getFinancingFromInvestorsNotice(financingBasicInfo.getId());
|
|
|
+ FinancingFromInvestorsHistory financingFromInvestorsHistory = financingFromInvestorsHistoryService.getById(notice.getFinancingFromInvestorsHistoryId());
|
|
|
+ FinancingFromInvestors financingFromInvestors = financingFromInvestorsService.getById(financingFromInvestorsHistory.getFinancingFromInvestorsId());
|
|
|
+ String openId = financingFromInvestors.getOpenId();
|
|
|
//查询借据编号
|
|
|
FinancingLoanInfo financingLoanInfo = financingLoanInfoService.lambdaQuery().eq(FinancingLoanInfo::getcFinancingBasicInfoId, financingBasicInfo.getId())
|
|
|
.eq(FinancingLoanInfo::getPayoutStatus, "02").one();
|
|
@@ -942,13 +945,13 @@ public class PaymentApplyServiceImpl extends ServiceImpl<PaymentApplyMapper, Pay
|
|
|
* @return
|
|
|
*/
|
|
|
private LoanApplyResp withdrawApplyBySmb(CFinancingBasicInfo financingBasicInfo, ReviewFinancingInfo reviewFinancingInfo) {
|
|
|
- LoanApply loanApplyReq = new LoanApply();
|
|
|
FinancingFromInvestorsNotice notice = reviewQuotaDisburseService.getFinancingFromInvestorsNotice(financingBasicInfo.getId());
|
|
|
FinancingFromInvestorsHistory financingFromInvestorsHistory = financingFromInvestorsHistoryService.getById(notice.getFinancingFromInvestorsHistoryId());
|
|
|
FinancingFromInvestors financingFromInvestors = financingFromInvestorsService.getById(financingFromInvestorsHistory.getFinancingFromInvestorsId());
|
|
|
if (notice == null) {
|
|
|
throw new BusinessException(CodeUtil.FAIL, "获取不到对应的资方融资回调信息");
|
|
|
}
|
|
|
+ LoanApply loanApplyReq = new LoanApply();
|
|
|
//额度编号
|
|
|
loanApplyReq.setProductLimitNo(notice.getLimitNumber());
|
|
|
//放款金额
|