package com.qmth.exam.reserve.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qmth.exam.reserve.bean.room.ExamRoomReq;
import com.qmth.exam.reserve.bean.room.ExamRoomVO;
import com.qmth.exam.reserve.entity.ExamRoomEntity;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface ExamRoomDao extends BaseMapper<ExamRoomEntity> {

    IPage<ExamRoomVO> pageExamRoom(Page<ExamRoomVO> page, ExamRoomReq req);

    List<ExamRoomEntity> listExamRoomByExamSiteId(@Param("examSiteId") Long examSiteId, @Param("enable") Boolean enable);
}
