package com.gxwebsoft.dormitory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gxwebsoft.dormitory.entity.DormitoryRecord;
import com.gxwebsoft.dormitory.param.DormitoryRecordParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 宿舍记录Mapper
 *
 * @author 科技小王子
 * @since 2025-10-03 10:49:27
 */
public interface DormitoryRecordMapper extends BaseMapper<DormitoryRecord> {

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

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

}
