package com.pqs9900.mapper.DataInfo;

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

import org.apache.ibatis.annotations.Param;

import com.pqs9900.pojo.DataInfo.AlarmInfo;

import tk.mybatis.mapper.common.Mapper;

/** @Author denghuajun
 * @Description //TODO 告警信息表Mapper
 * @Date  2019/3/15 11:57
 **/
public interface AlarmInfoMapper extends Mapper<AlarmInfo> {
	List<AlarmInfo> getAlarmInfo(@Param("startTime")Date startTime,@Param("endTime")Date endTime,@Param("state")String state,@Param("type")String type,@Param("alarmLevel") Integer alarmLevel,@Param("lineGrade") Integer lineGrade);

	List<AlarmInfo> getAlarmInfoDetail(@Param("state")String state,@Param("type")String type,@Param("typeIndex")Integer typeIndex,@Param("devLineType")Integer devLineType,@Param("processTime")String processTime);

	List<AlarmInfo> unAlarmInfo();

	int updateAlarmInfo(@Param("type")String type,@Param("typeIndex")Integer typeIndex,@Param("devLineType")Integer devLineType,@Param("processTime")Date processTime,@Param("userIndex")String userIndex);

	List<AlarmInfo> getAlarmTask(@Param("startTime")Date startTime,@Param("endTime")Date endTime);

	List<AlarmInfo> getAlarmTaskByDev(@Param("startTime")Date startTime,@Param("endTime")Date endTime);

	List<AlarmInfo> getAlarmDesc(@Param("devIndex")Integer devIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime);


}
