package com.shining.cloud.mapper.common;

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

import org.apache.ibatis.annotations.Param;

import com.shining.cloud.pojo.common.SteadyUrlData;

import tk.mybatis.mapper.common.Mapper;

/**
 * @description:稳态越限图形数据获取
 * @author gbl
 *
 */
public interface SteadyUrlDataMapper extends Mapper<SteadyUrlData>{
	//频率偏差
	List<SteadyUrlData> getFreqDev(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime);

	//电压偏差
	List<SteadyUrlData> getVUDev(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime,@Param("type")String type);
	
	//电压不平衡
	List<SteadyUrlData> getVUnbalance(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime);
	
	//长闪
	List<SteadyUrlData> getPLT(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,
			@Param("endTime")Date endTime,@Param("type")String type);
	
	//电压谐波畸变率
	List<SteadyUrlData> getVTHD(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,@Param("endTime")Date endTime,@Param("type")String type);
	
	//N次电压谐波含有率
	List<SteadyUrlData> getVHarmRate(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,
			@Param("endTime")Date endTime,@Param("number")String number,@Param("type")String type);
	
	//N次电流谐波幅值
	List<SteadyUrlData> getIHarmPhasic(@Param("lineIndex")int lineIndex,@Param("startTime")Date startTime,
			@Param("endTime")Date endTime,@Param("number")String number,@Param("type")String type);
}