package com.gxwebsoft.dormitory.mapper;

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

import java.util.List;

/**
 * 审批管理Mapper
 *
 * @author 科技小王子
 * @since 2025-10-03 15:54:30
 */
public interface DormitoryApplyMapper extends BaseMapper<DormitoryApply> {

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

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

}
