package com.njcn.mapper.data;

import com.njcn.pojo.commons.SimpleValue;
import com.njcn.pojo.commons.runmanage.OnlineRateData;
import com.njcn.pojo.data.OnlineRate;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

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

public interface OnlineRateMapper extends Mapper<OnlineRate> {

	SimpleValue selectOnlineRateByDeviceIndexAndTime(@Param("list") List<Integer> list, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

	List<SimpleValue> selectCityOnlineRate(@Param("list") List<Integer> temp, @Param("startTime")Date startTime,@Param("endTime")Date endTime);

	//运行管理--》终端在线率
    List<OnlineRateData> selectOnlineRate(@Param("list")List<Integer> deviceIndexs, @Param("startTime")Date startTime, @Param("endTime")Date endTime);

    //根据监测点查询国网的在线率
    Float getGWOnlineRate(@Param("list")List<Integer> lineIndex, @Param("startTime")Date startTime, @Param("endTime")Date endTime);
}
