package com.ruoyi.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.mall.domain.order.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单中所包含的商品Mapper接口
 *
 * @author zcc
 */
public interface OrderItemMapper extends BaseMapper<OrderItem> {
    /**
     * 查询订单中所包含的商品列表
     *
     * @param orderItem 订单中所包含的商品
     * @return 订单中所包含的商品集合
     */
    List<OrderItem> selectByEntity(OrderItem orderItem);
    List<OrderItem> getList(@Param("storeId") Long storeId ,@Param("userId") Long userId);

}
