package com.bonus.canteen.core.order.mapper;

import com.bonus.canteen.core.order.domain.OrderShoppingCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单购物车Mapper接口
 * 
 * @author ruoyi
 * @date 2025-04-14
 */
public interface OrderShoppingCartMapper 
{
    /**
     * 查询订单购物车
     * 
     * @param shoppingCartId 订单购物车主键
     * @return 订单购物车
     */
    public OrderShoppingCart selectOrderShoppingCartByShoppingCartId(Long shoppingCartId);

    /**
     * 查询订单购物车列表
     * 
     * @param orderShoppingCart 订单购物车
     * @return 订单购物车集合
     */
    public List<OrderShoppingCart> selectOrderShoppingCartList(OrderShoppingCart orderShoppingCart);

    /**
     * 新增订单购物车
     * 
     * @param orderShoppingCart 订单购物车
     * @return 结果
     */
    public int insertOrderShoppingCart(OrderShoppingCart orderShoppingCart);

    /**
     * 修改订单购物车
     * 
     * @param orderShoppingCart 订单购物车
     * @return 结果
     */
    public int updateOrderShoppingCart(OrderShoppingCart orderShoppingCart);

    /**
     * 删除订单购物车
     * 
     * @param shoppingCartId 订单购物车主键
     * @return 结果
     */
    public int deleteOrderShoppingCartByShoppingCartId(Long shoppingCartId);

    /**
     * 批量删除订单购物车
     * 
     * @param shoppingCartIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderShoppingCartByShoppingCartIds(@Param("params") List<Long> shoppingCartIds);
}
