This commit is contained in:
张良(004796)
2024-05-07 09:36:48 +08:00
parent 8a5c145c49
commit a16bc85a5e
2 changed files with 3 additions and 2 deletions

View File

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