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.response.TIeExamInvigilateCallDto;
import com.qmth.themis.business.entity.TIeExamInvigilateCall;
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/6/25
 */
@Mapper
public interface TIeExamInvigilateCallMapper extends BaseMapper<TIeExamInvigilateCall> {

    /**
     * 监考监控通话申请查询
     *
     * @param iPage
     * @param examId
     * @param userId
     * @param orgId
     * @param status
     * @param callStatusList
     * @param roomCode
     * @param callStatus
     * @return
     */
    public IPage<TIeExamInvigilateCallDto> examInvigilateCallQuery(IPage<Map> iPage, @Param("examId") Long examId, @Param("userId") Long userId, @Param("orgId") Long orgId, @Param("status") String status, @Param("callStatusList") List<String> callStatusList, @Param("roomCode") String roomCode, @Param("callStatus") String callStatus);

    /**
     * 监考监控通话count查询
     *
     * @param examId
     * @param userId
     * @param orgId
     * @param status
     * @param callStatusList
     * @param roomCode
     * @param callStatus
     * @return
     */
    public Integer examInvigilateCallQueryCount(@Param("examId") Long examId, @Param("userId") Long userId, @Param("orgId") Long orgId, @Param("status") String status, @Param("callStatusList") List<String> callStatusList, @Param("roomCode") String roomCode, @Param("callStatus") String callStatus);
}
