package com.gxwebsoft.house.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.house.entity.Reservation;
import com.gxwebsoft.house.param.ReservationParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预约记录表Mapper
 *
 * @author 科技小王子
 * @since 2023-08-03 18:23:43
 */
public interface ReservationMapper extends BaseMapper<Reservation> {

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

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

}
