|
|
|
@ -867,6 +867,7 @@ public class CashRefundServiceImpl implements RefundService { |
|
|
|
walletMapper.insert(new UserRegionWallet(null, cashRecordRefund.getJwcode(), wallet, BigDecimal.ZERO, new Date(), new Date())); |
|
|
|
log.warn("用户钱包不存在,已初始化钱包"); |
|
|
|
} |
|
|
|
userRegionWallet = walletMapper.selectWallet(cashRecordRefund.getJwcode(), wallet); |
|
|
|
if (userRegionWallet.getCurrentPermanentGold().compareTo(BigDecimal.valueOf(cashRecordRefund.getPartRefundGold())) < 0) { |
|
|
|
throw new BusinessException("用户钱包金币不足"); |
|
|
|
} |
|
|
|
|