package com.pqs9000.mapper.responsibility;

import com.njcn.pojo.responsibility.ResponsibilityData;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

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

/**
 * @author hongawen
 * @Date: 2019/5/5 14:14
 */
public interface ResponsibilityDataMapper extends Mapper<ResponsibilityData> {
    //获取计算时间范围内的谐波责任数据
    List<ResponsibilityData> responsibilityDataList(@Param("startTime")Date startTime, @Param("endTime")Date endTime);

    //根据监测点名称、用采表名、时间窗口查询责任列表
    List<ResponsibilityData> selectData(@Param("lineName")String lineName, @Param("excelName")String excelName, @Param("timeWin")String timeWin,@Param("type")String type);

    //根据索引删除记录
    void deleteByResIndex(String resIndex);

    //获取电压限值
    Float getLimitU(@Param("lineIndex")Integer lineIndex, @Param("time")Integer time);

    //获取电流限值
    Float getLimitI(@Param("lineIndex")Integer lineIndex, @Param("time")Integer time);
}
