package com.qmth.themis.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmth.themis.business.dto.RoomCodeExportDto;
import com.qmth.themis.business.dto.response.TBExamInvigilateUserDto;
import com.qmth.themis.business.entity.TBExamInvigilateUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: 监考员设置 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/7/9
 */
@Mapper
public interface TBExamInvigilateUserMapper extends BaseMapper<TBExamInvigilateUser> {

    /**
     * 查询监考员
     *
     * @param iPage
     * @param examId
     * @param roomCode
     * @param userId
     * @return
     */
    public IPage<TBExamInvigilateUserDto> examInvigilateUserQuery(IPage<Map> iPage, @Param("examId") Long examId, @Param("roomCode") String roomCode, @Param("userId") Long userId);

    /**
     * 监考员导出
     *
     * @return
     */
    public List<RoomCodeExportDto> examInvigilateUserExport();

	public List<Map<String, String>> getInvigilateUsers(@Param("examId") Long examId, @Param("roomCode") String roomCode);
}
