提交 0cb14130 authored 作者: jiangwenye's avatar jiangwenye

借款提交申请增加返回借款id

上级 f8f09655
...@@ -51,8 +51,8 @@ public class CarrierOwnerLoanRecordController { ...@@ -51,8 +51,8 @@ public class CarrierOwnerLoanRecordController {
@ApiOperation(value = "借款提交申请(调用宁波银行)",notes = "<br>By:胡宇帆") @ApiOperation(value = "借款提交申请(调用宁波银行)",notes = "<br>By:胡宇帆")
@PostMapping("/ownerLoanRecordSubmitNbBank") @PostMapping("/ownerLoanRecordSubmitNbBank")
public Result<Object> ownerLoanRecordSubmitNbBank(@RequestBody @Validated CarrierOwnerLoanRecordApproveParam param) { public Result<Object> ownerLoanRecordSubmitNbBank(@RequestBody @Validated CarrierOwnerLoanRecordApproveParam param) {
ownerLoanRecordService.ownerLoanRecordSubmitNbBank(param); Integer id = ownerLoanRecordService.ownerLoanRecordSubmitNbBank(param);
return Result.ok(); return Result.ok(id);
} }
@ApiOperation(value = "借款重新支付(只更改借款状态)",notes = "<br>By:胡宇帆") @ApiOperation(value = "借款重新支付(只更改借款状态)",notes = "<br>By:胡宇帆")
......
...@@ -784,7 +784,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService { ...@@ -784,7 +784,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
} }
@Override @Override
public void ownerLoanRecordSubmitNbBank(CarrierOwnerLoanRecordApproveParam param) { public Integer ownerLoanRecordSubmitNbBank(CarrierOwnerLoanRecordApproveParam param) {
OwnerLoanRecord ownerLoanRecord = ownerLoanRecordDao.getOneByField(OwnerLoanRecord::getLoanNo, param.getLoanNo()).get(); OwnerLoanRecord ownerLoanRecord = ownerLoanRecordDao.getOneByField(OwnerLoanRecord::getLoanNo, param.getLoanNo()).get();
if (!OwnerLoanRecordEnum.Status.PAY_WAIT.getCode().equals(ownerLoanRecord.getStatus())) { if (!OwnerLoanRecordEnum.Status.PAY_WAIT.getCode().equals(ownerLoanRecord.getStatus())) {
throw new ServiceSystemException(PerformanceResultEnum.OWNER_LOAN_RECORD_PAY_WAIT_ERROR); throw new ServiceSystemException(PerformanceResultEnum.OWNER_LOAN_RECORD_PAY_WAIT_ERROR);
...@@ -794,6 +794,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService { ...@@ -794,6 +794,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
Borrower borrower = borrowerDao.getEntityByKey(ownerLoanRecord.getBorrowerId()) Borrower borrower = borrowerDao.getEntityByKey(ownerLoanRecord.getBorrowerId())
.orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); .orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
fundPayProcess(param, ownerLoanRecord, borrower); fundPayProcess(param, ownerLoanRecord, borrower);
return ownerLoanRecord.getId();
} }
} }
...@@ -54,7 +54,7 @@ public interface OwnerLoanRecordService { ...@@ -54,7 +54,7 @@ public interface OwnerLoanRecordService {
String sendOrderPaySms(String mobile,String payee, String payeeAccount); String sendOrderPaySms(String mobile,String payee, String payeeAccount);
void ownerLoanRecordSubmitNbBank(CarrierOwnerLoanRecordApproveParam param); Integer ownerLoanRecordSubmitNbBank(CarrierOwnerLoanRecordApproveParam param);
void orderChildLoanProcess(Long ownerUserNo); void orderChildLoanProcess(Long ownerUserNo);
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论