package com.gxwebsoft.apps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.apps.entity.HualalaCartFood;
import com.gxwebsoft.apps.param.HualalaCartFoodParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 购物车商品Mapper
 *
 * @author 科技小王子
 * @since 2023-01-14 14:46:44
 */
public interface HualalaCartFoodMapper extends BaseMapper<HualalaCartFood> {

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

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

}
