package com.casic.missiles.modular.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.casic.missiles.modular.system.model.AlarmRecords;
import com.casic.missiles.core.datascope.DataScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author casic123
 * @since 2019-05-17
 */
public interface AlarmRecordsMapper extends BaseMapper<AlarmRecords> {

    List<Map<String,Object>> alarmList(@Param("page") Page<Map<String,Object>> page, @Param("keywords") String keywords, @Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("status") String status, @Param("alarmType") String alarmType, @Param("alarmContent") String alarmContent,@Param("dataScope") DataScope dataScope);

    List<AlarmRecords> alarmListNoPage(@Param("scope") DataScope dataScope, @Param("keywords") String keywords, @Param("alarmType") String alarmType, @Param("alarmContent") String alarmContent, @Param("beginTime") String beginTime, @Param("endTime") String endTime);

    boolean cancelAlarm(@Param("id") int id,@Param("jobStatus")String jobStatus,@Param("handleMessage") String handleMessage,@Param("personId") long personId);
}
