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.bean.admin.ExamBreachDetailListBean;
import com.qmth.themis.business.bean.admin.ExamBreachListBean;
import com.qmth.themis.business.bean.admin.ExamBreachListExportBean;
import com.qmth.themis.business.entity.TEExamBreachLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 考生违纪处理 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
@Mapper
public interface TEExamBreachLogMapper extends BaseMapper<TEExamBreachLog> {
    public IPage<ExamBreachListBean> getExamBreachPage(IPage<ExamBreachListBean> iPage, @Param("orgId") Long orgId, @Param("examId") Long examId,
                                                       @Param("activityId") Long activityId, @Param("roomCode") String roomCode,
                                                       @Param("courseCode") String courseCode, @Param("name") String name, @Param("identity") String identity);

    /**
     * 违纪名单导出
     * @param orgId
     * @param examId
     * @param activityId
     * @param roomCode
     * @param courseCode
     * @param name
     * @param identity
     * @return
     */
    public List<ExamBreachListExportBean> getExamBreachPageExport(@Param("orgId") Long orgId, @Param("examId") Long examId,
                                                                  @Param("activityId") Long activityId, @Param("roomCode") String roomCode,
                                                                  @Param("courseCode") String courseCode, @Param("name") String name, @Param("identity") String identity);

    public IPage<ExamBreachDetailListBean> getExamBreachDetailList(IPage<ExamBreachDetailListBean> iPage, @Param("examStudentId") Long examStudentId, @Param("status") Integer status);

    public IPage<ExamBreachListBean> getExamRevokeBreachPage(IPage<ExamBreachListBean> iPage, @Param("orgId") Long orgId, @Param("examId") Long examId,
                                                             @Param("activityId") Long activityId, @Param("roomCode") String roomCode,
                                                             @Param("courseCode") String courseCode, @Param("name") String name, @Param("identity") String identity);
}
