桌位费

This commit is contained in:
wangw 2025-03-07 11:04:35 +08:00
parent 1b84a435ff
commit 2568da4a10
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
throw new ValidateException("生成支付订单失败,该店铺未开启积分抵扣");
}
orderInfo.setSeatNum(param.getSeatNum());
if (shopInfo.getIsTableFee() != 0 && shopInfo.getTableFee().compareTo(BigDecimal.ZERO) != 0) {
if (shopInfo.getIsTableFee() != 1 && shopInfo.getTableFee().compareTo(BigDecimal.ZERO) != 0) {
orderInfo.setSeatAmount(new BigDecimal(param.getSeatNum()).multiply(shopInfo.getTableFee()));
} else {
orderInfo.setSeatAmount(BigDecimal.ZERO);