|
|
@@ -1251,6 +1251,7 @@ public class BusRoomBookingOrdersServiceImpl extends ServiceImpl<BusRoomBookingO
|
|
|
if(vipCard == null) throw new JeecgBootException("会员不存在");
|
|
|
if(vipCard.getBalance().compareTo(s.getMoney()) < 0) throw new JeecgBootException("会员卡余额不足");
|
|
|
vipCard.setBalance(vipCard.getBalance().subtract(s.getMoney()));
|
|
|
+ memberCardService.updateById(vipCard);
|
|
|
// log
|
|
|
BusMemberBalanceLog balanceLog = new BusMemberBalanceLog();
|
|
|
balanceLog.setMoney(s.getMoney());
|