package com.qmth.themis.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qmth.themis.business.bean.admin.ReexamListDoneBean;
import com.qmth.themis.business.bean.admin.ReexamListNotDoneBean;
import com.qmth.themis.business.bean.admin.ReexamListRequestBean;
import com.qmth.themis.business.entity.TEExamReexam;

import java.util.Map;

/**
 * @Description: 考生重考处理 服务类
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
public interface TEExamReexamService extends IService<TEExamReexam> {

    /**
     * 重考申请列表
     *
     * @param iPage
     * @param examId
     * @param examActivityId
     * @param roomCode
     * @param courseCode
     * @param name
     * @param identity
     * @param userId
     * @param orgId
     * @return
     */
    public IPage<ReexamListRequestBean> reexamPageRequestList(IPage<Map> iPage, Long examId,
                                                              Long examActivityId,
                                                              String roomCode,
                                                              String courseCode,
                                                              String name,
                                                              String identity,
                                                              Long userId,
                                                              Long orgId);

    /**
     * 重考待审列表
     *
     * @param iPage
     * @param examId
     * @param examActivityId
     * @param roomCode
     * @param courseCode
     * @param name
     * @param identity
     * @param reason
     * @param reasonStartTime
     * @param reasonEndTime
     * @param applyName
     * @param userId
     * @param orgId
     * @return
     */
    public IPage<ReexamListNotDoneBean> reexamPageNotDoneList(IPage<Map> iPage, Long examId,
                                                              Long examActivityId,
                                                              String roomCode,
                                                              String courseCode,
                                                              String name,
                                                              String identity,
                                                              String reason,
                                                              Long reasonStartTime,
                                                              Long reasonEndTime,
                                                              String applyName,
                                                              Long userId,
                                                              Long orgId);

    /**
     * 重考待审提醒
     *
     * @param examId
     * @param userId
     * @param orgId
     * @return
     */
    public Integer reexamPageNotDoneCount(Long examId, Long userId, Long orgId);

    /**
     * 重考已审列表
     *
     * @param iPage
     * @param examId
     * @param examActivityId
     * @param roomCode
     * @param courseCode
     * @param name
     * @param identity
     * @param auditingStatus
     * @param reasonStartTime
     * @param reasonEndTime
     * @param applyName
     * @param userId
     * @param orgId
     * @return
     */
    public IPage<ReexamListDoneBean> reexamPageDoneList(IPage<Map> iPage, Long examId,
                                                        Long examActivityId,
                                                        String roomCode,
                                                        String courseCode,
                                                        String name,
                                                        String identity,
                                                        Integer auditingStatus,
                                                        Long reasonStartTime,
                                                        Long reasonEndTime,
                                                        String applyName,
                                                        Long userId,
                                                        Long orgId);
}
