package com.gxwebsoft.dormitory.mapper;

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

import java.util.List;

/**
 * 宿舍楼栋Mapper
 *
 * @author 科技小王子
 * @since 2025-10-03 10:49:27
 */
public interface DormitoryBuildingMapper extends BaseMapper<DormitoryBuilding> {

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

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

}
