package com.czg.service.order.service.impl;

import com.czg.order.entity.OrderDetail;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.czg.order.entity.CashierCart;
import com.czg.order.service.CashierCartService;
import com.czg.service.order.mapper.CashierCartMapper;
import jakarta.validation.constraints.NotBlank;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 购物车 服务层实现。
 *
 * @author ww
 * @since 2025-02-20
 */
@Service
public class CashierCartServiceImpl extends ServiceImpl<CashierCartMapper, CashierCart> implements CashierCartService {

    @Override
    public List<OrderDetail> getCartByTableCode(Long shopId, String tableCode, Integer placeNum) {
        return getMapper().getCartByTableCode(shopId, tableCode, placeNum);
    }
}
