|
@@ -169,7 +169,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
if (goodsSellDto.getIsUseBalancePayment() && amount.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (goodsSellDto.getIsUseBalancePayment() && amount.compareTo(BigDecimal.ZERO) > 0) {
|
|
SysUserCashAccount userCashAccount = sysUserCashAccountService.getLocked(studentId);
|
|
SysUserCashAccount userCashAccount = sysUserCashAccountService.getLocked(studentId);
|
|
if (userCashAccount == null) {
|
|
if (userCashAccount == null) {
|
|
- throw new BizException("用户账户找不到");
|
|
|
|
|
|
+ throw new BizException("用户账户不存在");
|
|
}
|
|
}
|
|
if (userCashAccount.getBalance() != null && userCashAccount.getBalance().compareTo(BigDecimal.ZERO) > 0) {
|
|
if (userCashAccount.getBalance() != null && userCashAccount.getBalance().compareTo(BigDecimal.ZERO) > 0) {
|
|
balance = amount.compareTo(userCashAccount.getBalance()) >= 0 ? userCashAccount.getBalance() : amount;
|
|
balance = amount.compareTo(userCashAccount.getBalance()) >= 0 ? userCashAccount.getBalance() : amount;
|