package com.qmth.themis.business.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qmth.themis.business.bean.backend.WarningNotifyBean;
import com.qmth.themis.business.dto.response.TIeWarningNotifyDto;
import com.qmth.themis.business.entity.TIeInvigilateWarnInfo;

/**
 * @Description: 监考预警信息 Mapper 接口
 * @Param:
 * @return:
 * @Author: wangliang
 * @Date: 2020/6/25
 */
@Mapper
public interface TIeInvigilateWarnInfoMapper extends BaseMapper<TIeInvigilateWarnInfo> {

    /**
     * 预警提醒
     *
     * @param examId
     * @param examActivityId
     * @param roomCode
     * @param userId
     * @return
     */
    public Integer warningCount(@Param("examId") Long examId,
                                @Param("examActivityId") Long examActivityId,
                                @Param("roomCode") String roomCode,
                                @Param("userId") Long userId);

    /**
     * 预警通知
     *
     * @param examId
     * @param userId
     * @param orgId
     * @return
     */
    public List<TIeWarningNotifyDto> warningMessage(@Param("examId") Long examId, @Param("userId") Long userId, @Param("orgId") Long orgId);

	public List<WarningNotifyBean> findLastMsg(@Param("conut")Integer conut);
}
