package com.gxwebsoft.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.shop.entity.OrderGoods;
import com.gxwebsoft.shop.param.OrderGoodsParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品信息Mapper
 *
 * @author 科技小王子
 * @since 2024-05-26 15:42:03
 */
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<OrderGoods>
     */
    List<OrderGoods> selectPageRel(@Param("page") IPage<OrderGoods> page,
                             @Param("param") OrderGoodsParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<OrderGoods> selectListRel(@Param("param") OrderGoodsParam param);

}
