提交 1ee95737 authored 作者: huyufan's avatar huyufan

Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118'…

Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118' into v10.7_borrowing_and_repayment_20240118
package com.clx.performance.vo.pc.loan.carrier; package com.clx.performance.vo.pc.loan.carrier;
import com.clx.performance.enums.OwnerAccountEnum;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.msl.common.convertor.type.MoneyOutConvert; import com.msl.common.convertor.type.MoneyOutConvert;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
...@@ -32,7 +33,11 @@ public class CarrierOwnerLoanAccountVO { ...@@ -32,7 +33,11 @@ public class CarrierOwnerLoanAccountVO {
@ApiModelProperty(value = "联系电话", example = "13000000000") @ApiModelProperty(value = "联系电话", example = "13000000000")
private String mobile; private String mobile;
@ApiModelProperty(value = "默认 3:借款账户", example = "3") @ApiModelProperty(value = "默认 3:借款账户", example = "3")
private Integer accountType; private String accountType;
public String getAccountType(){
return OwnerAccountEnum.AccountTypeStatus.LOAN_ACCOUNT.getMsg();
}
@ApiModelProperty(value = "账户余额 (元) ", example = "1.23") @ApiModelProperty(value = "账户余额 (元) ", example = "1.23")
private BigDecimal amount; private BigDecimal amount;
......
...@@ -411,7 +411,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService { ...@@ -411,7 +411,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
PerformanceResultEnum.DATA_NOT_FIND); PerformanceResultEnum.DATA_NOT_FIND);
CarrierOwnerOrderPaymentDetailVO vo = ownerLoanRecordStruct.convertOrderPaymentDetail(ownerLoanRecord); CarrierOwnerOrderPaymentDetailVO vo = ownerLoanRecordStruct.convertOrderPaymentDetail(ownerLoanRecord);
vo.setPayer(ownerLoanRecord.getBorrower()); vo.setPayer(ownerLoanRecord.getBorrower());
vo.setPayerAccount(ownerLoanRecord.getPayeeAccount()); vo.setPayerAccount(ownerLoanRecord.getBorrowerAccount());
ClxPayeeConfig.PayeeConfig payeeMap = ClxPayeeConfig.getPayee(ClxPayeeConfig.XXH_ID); ClxPayeeConfig.PayeeConfig payeeMap = ClxPayeeConfig.getPayee(ClxPayeeConfig.XXH_ID);
vo.setPayee(payeeMap.getName()); vo.setPayee(payeeMap.getName());
vo.setPayeeAccount(payeeMap.getAccount()); vo.setPayeeAccount(payeeMap.getAccount());
...@@ -578,7 +578,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService { ...@@ -578,7 +578,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
BankTrade bankTrade = bankTradeDao.selectByMerchantRunningWaterNo(merSeqNo).get(); BankTrade bankTrade = bankTradeDao.selectByMerchantRunningWaterNo(merSeqNo).get();
OwnerLoanRecord ownerLoanRecord = ownerLoanRecordDao.getOneByField(OwnerLoanRecord::getLoanNo, bankTrade.getRelationNo()) OwnerLoanRecord ownerLoanRecord = ownerLoanRecordDao.getOneByField(OwnerLoanRecord::getLoanNo, bankTrade.getRelationNo())
.orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); .orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
if (Objects.equals(ownerLoanRecord.getStatus(), OwnerLoanRecordEnum.Status.PAYING.getCode())) { if (!Objects.equals(ownerLoanRecord.getStatus(), OwnerLoanRecordEnum.Status.PAYING.getCode())) {
log.info("借款单非支付中状态, loanNo:{}", bankTrade.getRelationNo()); log.info("借款单非支付中状态, loanNo:{}", bankTrade.getRelationNo());
return; return;
} }
...@@ -597,7 +597,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService { ...@@ -597,7 +597,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
OwnerLoanRecord ownerLoanRecord = ownerLoanRecordDao.getOneByField(OwnerLoanRecord::getLoanNo, bankTrade.getRelationNo()) OwnerLoanRecord ownerLoanRecord = ownerLoanRecordDao.getOneByField(OwnerLoanRecord::getLoanNo, bankTrade.getRelationNo())
.orElseThrow(PerformanceResultEnum.DATA_NOT_FIND); .orElseThrow(PerformanceResultEnum.DATA_NOT_FIND);
if (Objects.equals(ownerLoanRecord.getStatus(), OwnerLoanRecordEnum.Status.PAYING.getCode())) { if (!Objects.equals(ownerLoanRecord.getStatus(), OwnerLoanRecordEnum.Status.PAYING.getCode())) {
log.info("借款单非支付中状态, loanNo:{}", ownerLoanRecord.getLoanNo()); log.info("借款单非支付中状态, loanNo:{}", ownerLoanRecord.getLoanNo());
return; return;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论