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