package com.shining.cloud.mapper.statistics;

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

import org.apache.ibatis.annotations.Param;

import com.njcn.pojo.commons.EventInfoDetail;
import com.njcn.pojo.data.LimitRate;
import com.shining.cloud.pojo.statistics.Statistics;

import tk.mybatis.mapper.common.Mapper;

/**
 * @description: 统计数据Mapper
 * @author: gbl
 **/

public interface StatisticsMapper extends Mapper<Statistics> {
	//通过监测点ID查询统计数据
	List<Statistics> queryByLineIndex(@Param("lineIndex")Integer lineIndex);
	
	//获取事件日期
	List<String> queryEventDate(@Param("lineIndex")Integer lineIndex);
	
	//根据监测点ID和日期查询暂降次数
	Long queryEventCount(@Param("lineIndex")Integer lineIndex,@Param("timeID")String timeID);
	
	//查询暂降事件ID
	List<String> queryEventIndexList(@Param("lineIndex")Integer lineIndex,@Param("timeID")String timeID);
	
	//查询稳态越限消息
	LimitRate queryLimit(@Param("lineIndex")Integer lineIndex,@Param("timeID")Date timeID);
	
	//获取监测点完整名称
	String getTotalName(@Param("lineIndex")Integer lineIndex);
	
	//查询暂降事件详情
	List<EventInfoDetail> eventDetailList(@Param("lineIndex")Integer lineIndex,@Param("timeID")String timeID);
	
	//查询统计数据列表
	List<Statistics> queryList(@Param("lineIndex")Integer lineIndex,@Param("startTime")String startTime,@Param("endTime")String endTime);
	
}