浏览代码

对账文件批处理任务优化

liuj 2 周之前
父节点
当前提交
449f963a99

+ 4 - 4
src/main/java/com/sunxung/factoring/service/smb/impl/FinancingReconciliationInfoServiceImpl.java

@@ -58,8 +58,8 @@ public class FinancingReconciliationInfoServiceImpl extends ServiceImpl<Financin
     @Autowired
     private RestTemplate restTemplate;
 
-    @Value("${config.smbRefinancingPlanUpdate.url}")
-    private String smbRefinancingPlanUpdateUrl;
+    @Value("${config.smbBeforeRepayPlanUpdate.url}")
+    private String smbBeforeRepayPlanUpdateUrl;
 
     @Override
     public GridPage<FinancingReconciliationInfo> findBySearch(FinancingReconciliationInfoSearch search) {
@@ -163,9 +163,9 @@ public class FinancingReconciliationInfoServiceImpl extends ServiceImpl<Financin
                             smbRefinancingInfo.setContractNo(financingLoanInfo.getContractNo());
                             smbRefinancingInfo.setQuotaDisburseBatch(financingLoanInfo.getQuotaDisburseBatch());
                             smbRefinancingInfo.setRepayPlanResp(repayPlanResp);
-                            smbRefinancingInfo.setRepaymentMethod(SmbRepaymentMethodEnum.BATCH_DEDUCTION.getCode());
+                       //     smbRefinancingInfo.setRepaymentMethod(SmbRepaymentMethodEnum.BATCH_DEDUCTION.getCode());
 
-                            ResponseEntity<String> responseEntity = restTemplate.postForEntity(smbRefinancingPlanUpdateUrl, smbRefinancingInfo, String.class);
+                            ResponseEntity<String> responseEntity = restTemplate.postForEntity(smbBeforeRepayPlanUpdateUrl, smbRefinancingInfo, String.class);
                             ResponseJson responseJson = JSONUtil.toBean(responseEntity.getBody(), ResponseJson.class);
                             if (responseEntity.getStatusCode().value() != HttpStatus.OK.value() || !responseJson.isSuccess()) {
                                 throw new BusinessException(CodeUtil.FAIL, "苏商还款计划更新推送sop失败:" + responseJson.getMsg().toString());