Преглед на файлове

对账文件批处理任务优化

liuj преди 2 седмици
родител
ревизия
449f963a99
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/main/java/com/sunxung/factoring/service/smb/impl/FinancingReconciliationInfoServiceImpl.java

+ 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());