package com.njcn.mapper.configuration;

import com.njcn.pojo.commons.device.EventDataList;
import com.njcn.pojo.commons.device.EventTypeList;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

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

public interface EventDataMapper extends Mapper<EventDataList> {
    List<EventDataList> getEventDataList(@Param("lineIndex") Integer lineIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer getCountsByInterval(@Param("lineIndex") Integer lineIndex, @Param("interTime") String interTime);

    List<EventDataList> areaEventDataList(@Param("list") List<Integer> lineIndexs, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer getCountByIndex(@Param("lineIndex") Integer lineindex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<EventTypeList> getEventTypeCount(@Param("lineIndex") Integer lineindex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Integer getGdcounts(@Param("gdIndex") Integer gdIndex, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}