123
This commit is contained in:
@@ -57,6 +57,7 @@ dk.loan.amount.notGe=\u8D37\u6B3E\u91D1\u989D\u4E0D\u80FD\u5927\u4E8E
|
||||
dk.loan.auditing=\u5BA1\u6838\u4E2D
|
||||
dk.loan.auditing.remark=\u5BA1\u6838\u4E2D...
|
||||
dk.withdraw.account.error=\u63D0\u73B0\u5931\u8D25\uFF0C\u8D26\u53F7\u5F02\u5E38
|
||||
dk.withdraw.account.noStatus=\u63D0\u73B0\u5931\u8D25\uFF0C\u8BF7\u5148\u7533\u8BF7\u8D37\u6B3E
|
||||
dk.withdraw.balance.not.enough.error=\u4F59\u989D\u4E0D\u8DB3
|
||||
dk.withdraw.fail=\u63D0\u73B0\u5931\u8D25
|
||||
dk.withdraw.ing=\u63D0\u73B0\u4E2D
|
||||
|
||||
@@ -202,13 +202,13 @@ public class BorrowServiceImpl extends ServiceImpl<BorrowMapper, Borrow> impleme
|
||||
}
|
||||
Borrow borrow = this.getByCustomerId(customerId);
|
||||
if(borrow == null){
|
||||
throw new CustomException(MessageUtils.message("dk.withdraw.account.error"));
|
||||
throw new CustomException(MessageUtils.message("dk.withdraw.account.noStatus"));
|
||||
}
|
||||
if(borrow.getBorrowStatusId() != null){
|
||||
BorrowStatus borrowStatus = borrowStatusService.getById(borrow.getBorrowStatusId());
|
||||
if(borrowStatus != null){
|
||||
if(BooleanUtils.isFalse(borrowStatus.getWithdrawFlag())){
|
||||
throw new CustomException(MessageUtils.message("dk.withdraw.account.error"));
|
||||
throw new CustomException(borrowStatus.getBorrowRemark());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user