外带不校验用餐人数

This commit is contained in:
2024-09-25 17:19:50 +08:00
parent 06fc651646
commit 0306b9ea67

View File

@@ -632,7 +632,7 @@ public class CartService {
// 设置餐位费
TbShopInfo shopInfo = mpShopInfoMapper.selectById(shopId);
if (shopInfo.getIsTableFee() != null && shopInfo.getIsTableFee() == 0) {
if (!shopEatTypeInfoDTO.isTakeout() && shopInfo.getIsTableFee() != null && shopInfo.getIsTableFee() == 0) {
seatNum = jsonObject.getInteger("dinersNum");
if (seatNum == null) {
MsgException.throwException("dinersNum不能为空");