桌位费

This commit is contained in:
wangw 2025-02-28 16:26:01 +08:00
parent 7464da48d3
commit 64a94e7e12
1 changed files with 0 additions and 3 deletions

View File

@ -167,9 +167,6 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
public OrderInfo createOrder(OrderInfoAddDTO param) {
ShopInfo shopInfo = shopInfoService.getById(param.getShopId());
AssertUtil.isNull(shopInfo, "生成订单失败,店铺信息不存在");
if (shopInfo.getIsTableFee().equals(0)) {
throw new ValidateException("生成订单失败,请选择用餐人数后下单");
}
if (!shopInfo.getEatModel().contains(param.getDineMode())) {
throw new ValidateException("生成订单失败,店铺不支持该用餐模式");
}