fix: 修改会员信息校验餐位费修改

This commit is contained in:
张松
2024-11-07 11:03:34 +08:00
parent 8e308cf187
commit 0a519d89b8

View File

@@ -1329,7 +1329,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
cartInfoDTO.getCashierCarts().add(cashierCart);
}
if (ignoreEmpty && (StrUtil.isNotBlank(shopEatTypeInfoDTO.getTableId())
if (!ignoreEmpty && (StrUtil.isNotBlank(shopEatTypeInfoDTO.getTableId())
&& (cartInfoDTO.getCashierCarts().isEmpty() ||
(shopEatTypeInfoDTO.isNeedSeatFee() && !shopEatTypeInfoDTO.isTakeout() && seatCart != null && cartInfoDTO.getCashierCarts().size() < 2)
|| (shopEatTypeInfoDTO.isNeedSeatFee() && !shopEatTypeInfoDTO.isTakeout() && seatCart == null)))) {