Selaa lähdekoodia

贸理通推送sop逻辑优化

liuj 3 viikkoa sitten
vanhempi
commit
5670388d0f

+ 7 - 2
src/main/java/com/sunxung/factoring/service/smb/impl/FinancingPaymentInfoServiceImpl.java

@@ -135,8 +135,8 @@ public class FinancingPaymentInfoServiceImpl extends ServiceImpl<FinancingPaymen
                 smbRefinancingInfo.setQuotaDisburseBatch(financingPaymentInfo.getQuotaDisburseBatch());
                 smbRefinancingInfo.setRepayPlanResp(repayPlanResp);
                 smbRefinancingInfo.setRepaymentMethod(SmbRepaymentMethodEnum.PROACTIVE_REPAYMENT.getCode());
-                smbRefinancingInfo.setRepayInterest(financingPaymentInfo.getHxCapi());
-                smbRefinancingInfo.setRepayPrincipal(financingPaymentInfo.getHxInte());
+                smbRefinancingInfo.setRepayPrincipal(financingPaymentInfo.getHxCapi());
+                smbRefinancingInfo.setRepayInterest(financingPaymentInfo.getHxInte());
                 if (financingPaymentInfo.getRepayType() != null) {
                     smbRefinancingInfo.setRepayType(financingPaymentInfo.getRepayType());
                 }
@@ -171,6 +171,11 @@ public class FinancingPaymentInfoServiceImpl extends ServiceImpl<FinancingPaymen
                             smbRefinancingInfo.setQuotaDisburseBatch(financingPaymentInfo.getQuotaDisburseBatch());
                             smbRefinancingInfo.setRepayPlanResp(repayPlanResp);
                             smbRefinancingInfo.setRepaymentMethod(SmbRepaymentMethodEnum.PROACTIVE_REPAYMENT.getCode());
+                            smbRefinancingInfo.setRepayPrincipal(financingPaymentInfo.getHxCapi());
+                            smbRefinancingInfo.setRepayInterest(financingPaymentInfo.getHxInte());
+                            if (financingPaymentInfo.getRepayType() != null) {
+                                smbRefinancingInfo.setRepayType(financingPaymentInfo.getRepayType());
+                            }
 
                             ResponseEntity<String> responseEntity = restTemplate.postForEntity(smbRefinancingPlanUpdateUrl, smbRefinancingInfo, String.class);
                             ResponseJson responseJson = JSONUtil.toBean(responseEntity.getBody(), ResponseJson.class);