外带不校验餐位费

This commit is contained in:
SongZhang 2024-10-12 14:36:35 +08:00
parent 00f15ef7ee
commit 1c04a44278
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
List<TbCashierCart> cashierCarts = cashierCartMapper
.selectList(queryWrapper);
if (cashierCarts.isEmpty() || (shopEatTypeInfoDTO.isNeedSeatFee() && cashierCarts.size() < 2)) {
if (cashierCarts.isEmpty() || (shopEatTypeInfoDTO.isNeedSeatFee() && !shopEatTypeInfoDTO.isTakeout() && cashierCarts.size() < 2)) {
throw new BadRequestException("购物车为空或未选择餐位费,请先添加商品或选择餐位费");
}