外带不校验餐位费
This commit is contained in:
@@ -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("购物车为空或未选择餐位费,请先添加商品或选择餐位费");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user