用餐人数

This commit is contained in:
wangw 2025-02-27 16:59:23 +08:00
parent 7dc3183289
commit 7389d703ef
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ 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) && param.getSeatNum() == 0) {
if (shopInfo.getIsTableFee().equals(0)) {
throw new ValidateException("生成订单失败,请选择用餐人数后下单");
}
if (!shopInfo.getEatModel().contains(param.getDineMode())) {