提交 f8f09655 authored 作者: huyufan's avatar huyufan

货主还款更改请求方式

上级 fce5ea0f
...@@ -42,7 +42,6 @@ public class OwnerLoanAccountController { ...@@ -42,7 +42,6 @@ public class OwnerLoanAccountController {
return Result.ok(); return Result.ok();
} }
@ApiOperation(value = "货主借款申请",notes = "<br>By:胡宇帆") @ApiOperation(value = "货主借款申请",notes = "<br>By:胡宇帆")
@PostMapping("/ownerLoanRecordSubmit") @PostMapping("/ownerLoanRecordSubmit")
@UnitCovert(result = false) @UnitCovert(result = false)
...@@ -51,8 +50,6 @@ public class OwnerLoanAccountController { ...@@ -51,8 +50,6 @@ public class OwnerLoanAccountController {
return Result.ok(); return Result.ok();
} }
@ApiOperation(value = "货主借款账户信息",notes = "<br>By:刘海泉") @ApiOperation(value = "货主借款账户信息",notes = "<br>By:刘海泉")
@GetMapping("/getOwnerLoanAccount") @GetMapping("/getOwnerLoanAccount")
@UnitCovert(param = false) @UnitCovert(param = false)
...@@ -62,7 +59,7 @@ public class OwnerLoanAccountController { ...@@ -62,7 +59,7 @@ public class OwnerLoanAccountController {
} }
@ApiOperation(value = "货主还款",notes = "<br>By:胡宇帆") @ApiOperation(value = "货主还款",notes = "<br>By:胡宇帆")
@GetMapping("/ownerRepayment") @PostMapping("/ownerRepayment")
public Result<OwnerAccountVO> ownerRepayment(@RequestBody OwnerRepaymentParam param) { public Result<OwnerAccountVO> ownerRepayment(@RequestBody OwnerRepaymentParam param) {
ownerLoanAccountService.ownerRepayment(param); ownerLoanAccountService.ownerRepayment(param);
return Result.ok(); return Result.ok();
...@@ -70,8 +67,8 @@ public class OwnerLoanAccountController { ...@@ -70,8 +67,8 @@ public class OwnerLoanAccountController {
@ApiOperation(value = "取消支付(还款)",notes = "<br>By:胡宇帆") @ApiOperation(value = "取消支付(还款)",notes = "<br>By:胡宇帆")
@GetMapping("/ownerRepaymentCancelPay") @GetMapping("/ownerRepaymentCancelPay")
public Result<Object> ownerLoanRecordCancelPay(@RequestParam(value = "repaymentNo") @NotBlank String repaymentNo) { public Result<Object> ownerRepaymentCancelPay(@RequestParam(value = "repaymentNo") @NotBlank String repaymentNo) {
ownerRepaymentService.ownerLoanRecordCancelPay(repaymentNo); ownerRepaymentService.ownerRepaymentCancelPay(repaymentNo);
return Result.ok(); return Result.ok();
} }
......
...@@ -513,7 +513,6 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService { ...@@ -513,7 +513,6 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
ownerLoanRecord.getLoanBalance().intValue(), borrower.getOpenBankId(), borrower.getBankCardNo(), borrower.getName()); ownerLoanRecord.getLoanBalance().intValue(), borrower.getOpenBankId(), borrower.getBankCardNo(), borrower.getName());
ownerLoanRecord.setRunningWaterOpenNo(orderPayResultVO.getTransSeqNo()); ownerLoanRecord.setRunningWaterOpenNo(orderPayResultVO.getTransSeqNo());
ownerLoanRecord.setMerchantRunningWaterNo(orderPayResultVO.getMerSeqNo()); ownerLoanRecord.setMerchantRunningWaterNo(orderPayResultVO.getMerSeqNo());
ownerLoanRecord.setRemittanceIdentificationCode(null);
ownerLoanRecord.setStatus(OwnerLoanRecordEnum.Status.PAYING.getCode()); ownerLoanRecord.setStatus(OwnerLoanRecordEnum.Status.PAYING.getCode());
ownerLoanRecord.setLoanResidueBalance(ownerLoanRecord.getLoanBalance()); ownerLoanRecord.setLoanResidueBalance(ownerLoanRecord.getLoanBalance());
......
...@@ -223,12 +223,11 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService { ...@@ -223,12 +223,11 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void ownerLoanRecordCancelPay(String repaymentNo) { public void ownerRepaymentCancelPay(String repaymentNo) {
OwnerRepayment ownerRepayment = ownerRepaymentDao.getOneByField(OwnerRepayment::getRepaymentNo, repaymentNo) OwnerRepayment ownerRepayment = ownerRepaymentDao.getOneByField(OwnerRepayment::getRepaymentNo, repaymentNo)
.orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); .orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
if (ownerRepayment.getStatus().equals(OwnerRePaymentEnum.Status.PAY_SUCCESS.getCode())) if (!ownerRepayment.getStatus().equals(OwnerRePaymentEnum.Status.PAYING.getCode())) {
{ log.info("还款记录状态异常,不是付款中,不能取消");
log.info("还款记录状态异常,不能取消");
throw new ServiceSystemException(PerformanceResultEnum.OWNER_LOAN_RECORD_CANCEL_STATUS_ERROR); throw new ServiceSystemException(PerformanceResultEnum.OWNER_LOAN_RECORD_CANCEL_STATUS_ERROR);
} }
BankTrade bankTrade = bankTradeDao.selectByRelationNo(repaymentNo).get(); BankTrade bankTrade = bankTradeDao.selectByRelationNo(repaymentNo).get();
......
...@@ -33,7 +33,7 @@ public interface OwnerRepaymentService { ...@@ -33,7 +33,7 @@ public interface OwnerRepaymentService {
String sendPaymentSms(String mobile,Long repaymentNo); String sendPaymentSms(String mobile,Long repaymentNo);
String sendOrderPaySms(String mobile,String payee, String payeeAccount); String sendOrderPaySms(String mobile,String payee, String payeeAccount);
void ownerLoanRecordCancelPay(String repaymentNo); void ownerRepaymentCancelPay(String repaymentNo);
void ownerRepaymentRetryPay(String repaymentNo); void ownerRepaymentRetryPay(String repaymentNo);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论