package com.gxwebsoft.house.mapper;

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

import java.util.List;

/**
 * 预约记录表Mapper
 *
 * @author 科技小王子
 * @since 2025-03-05 13:47:15
 */
public interface HouseReservationMapper extends BaseMapper<HouseReservation> {

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

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

}
