package com.qmth.themis.business.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qmth.themis.business.base.CustomBaseMapper;
import com.qmth.themis.business.dto.response.TEStudentDto;
import com.qmth.themis.business.dto.response.TEStudentExamRecordDto;
import com.qmth.themis.business.dto.response.TEStudentExamRecordVideoMessageDto;
import com.qmth.themis.business.entity.TEStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Description: 学生档案 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
@Mapper
public interface TEStudentMapper extends CustomBaseMapper<TEStudent> {

    /**
     * 学生档案查询
     *
     * @param iPage
     * @param identity
     * @param name
     * @param enable
     * @param orgId
     * @param photo
     * @return
     */
    public IPage<TEStudentDto> studentQuery(IPage<Map> iPage, @Param("identity") String identity, @Param("name") String name, @Param("enable") Integer enable, @Param("orgId") Long orgId, @Param("photo") Boolean photo);

    /**
     * 学生考试记录查询
     *
     * @param iPage
     * @param studentId
     * @param examId
     * @return
     */
    public IPage<TEStudentExamRecordDto> studentExamRecordQuery(IPage<Map> iPage, @Param("studentId") Long studentId, @Param("examId") Long examId);

    /**
     * 视频监考回放查询接口
     *
     * @param iPage
     * @param examRecordId
     * @param monitorRecord
     * @return
     */
    public IPage<TEStudentExamRecordVideoMessageDto> examRecordVideoQuery(IPage<Map> iPage, @Param("examRecordId") Long examRecordId, @Param("monitorRecord") String monitorRecord);
}
