123
This commit is contained in:
@@ -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