|
@@ -569,7 +569,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
|
|
RepayStatusResp repayStatusResp = smbApiService.repayApply(repayApply, financingLoanInfo.getOpenId());
|
|
RepayStatusResp repayStatusResp = smbApiService.repayApply(repayApply, financingLoanInfo.getOpenId());
|
|
if (repayStatusResp != null) {
|
|
if (repayStatusResp != null) {
|
|
//保存资方还款信息
|
|
//保存资方还款信息
|
|
- saveFinancingPaymentInfo(financingLoanInfo, repayStatusResp, bizNo);
|
|
|
|
|
|
+ saveFinancingPaymentInfo(financingLoanInfo, repayStatusResp, bizNo, repayApply.getRepayType());
|
|
if ("01".equals(repayStatusResp.getRepayStatus())) {
|
|
if ("01".equals(repayStatusResp.getRepayStatus())) {
|
|
//如果状态为还款成功
|
|
//如果状态为还款成功
|
|
//如果还款状态由还款中->还款成功 查询最新的还款计划,同步更新到sop中
|
|
//如果还款状态由还款中->还款成功 查询最新的还款计划,同步更新到sop中
|
|
@@ -582,6 +582,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
|
|
smbRefinancingInfo.setRepaymentMethod(SmbRepaymentMethodEnum.PROACTIVE_REPAYMENT.getCode());
|
|
smbRefinancingInfo.setRepaymentMethod(SmbRepaymentMethodEnum.PROACTIVE_REPAYMENT.getCode());
|
|
smbRefinancingInfo.setRepayPrincipal(new BigDecimal(repayStatusResp.getHxCapi()));
|
|
smbRefinancingInfo.setRepayPrincipal(new BigDecimal(repayStatusResp.getHxCapi()));
|
|
smbRefinancingInfo.setRepayInterest(new BigDecimal(repayStatusResp.getHxInte()));
|
|
smbRefinancingInfo.setRepayInterest(new BigDecimal(repayStatusResp.getHxInte()));
|
|
|
|
+ smbRefinancingInfo.setRepayType(repayApply.getRepayType());
|
|
|
|
|
|
ResponseEntity<String> responseEntity = restTemplate.postForEntity(smbRefinancingPlanUpdateUrl, smbRefinancingInfo, String.class);
|
|
ResponseEntity<String> responseEntity = restTemplate.postForEntity(smbRefinancingPlanUpdateUrl, smbRefinancingInfo, String.class);
|
|
ResponseJson responseJson = JSONUtil.toBean(responseEntity.getBody(), ResponseJson.class);
|
|
ResponseJson responseJson = JSONUtil.toBean(responseEntity.getBody(), ResponseJson.class);
|
|
@@ -599,8 +600,11 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
|
|
* @param financingLoanInfo
|
|
* @param financingLoanInfo
|
|
* @param repayStatusResp
|
|
* @param repayStatusResp
|
|
*/
|
|
*/
|
|
- private void saveFinancingPaymentInfo(FinancingLoanInfo financingLoanInfo, RepayStatusResp repayStatusResp, String bizNo) {
|
|
|
|
|
|
+ private void saveFinancingPaymentInfo(FinancingLoanInfo financingLoanInfo, RepayStatusResp repayStatusResp,
|
|
|
|
+ String bizNo, String repayType) {
|
|
FinancingPaymentInfo financingPaymentInfo = new FinancingPaymentInfo(financingLoanInfo);
|
|
FinancingPaymentInfo financingPaymentInfo = new FinancingPaymentInfo(financingLoanInfo);
|
|
|
|
+ //还款方式
|
|
|
|
+ financingPaymentInfo.setRepayType(repayType);
|
|
//bizNo
|
|
//bizNo
|
|
financingPaymentInfo.setBizNo(bizNo);
|
|
financingPaymentInfo.setBizNo(bizNo);
|
|
//还款编号
|
|
//还款编号
|