package com.njcn.cloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njcn.cloud.pojo.dto.AppSteadyUrl;
import com.njcn.cloud.pojo.vo.SteadyUrlData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 稳态图形信息 Mapper 接口
 * </p>
 *
 * @author wr
 * @since 2023-11-03
 */
public interface AppSteadyUrlMapper extends BaseMapper<AppSteadyUrl> {

    //频率偏差
    List<SteadyUrlData> getFreqDev(@Param("lineIndex")String lineIndex, 
                                   @Param("startTime") String startTime, 
                                   @Param("endTime")String endTime);

    //电压偏差
    List<SteadyUrlData> getVUDev(@Param("lineIndex")String lineIndex,
                                 @Param("startTime")String startTime,
                                 @Param("endTime")String endTime,
                                 @Param("type")String type);

    //电压不平衡
    List<SteadyUrlData> getVUnbalance(@Param("lineIndex")String lineIndex,
                                      @Param("startTime")String startTime,
                                      @Param("endTime")String endTime);

    //长闪
    List<SteadyUrlData> getPLT(@Param("lineIndex")String lineIndex,
                               @Param("startTime")String startTime,
                               @Param("endTime")String endTime,
                               @Param("type")String type);

    //电压谐波畸变率
    List<SteadyUrlData> getVTHD(@Param("lineIndex")String lineIndex,
                                @Param("startTime")String startTime,
                                @Param("endTime")String endTime,
                                @Param("type")String type);

    //N次电压谐波含有率
    List<SteadyUrlData> getVHarmRate(@Param("lineIndex")String lineIndex,
                                     @Param("startTime")String startTime,
                                     @Param("endTime")String endTime,
                                     @Param("number")String number,
                                     @Param("type")String type);

    //N次电流谐波幅值
    List<SteadyUrlData> getIHarmPhasic(@Param("lineIndex")String lineIndex,
                                       @Param("startTime")String startTime,
                                       @Param("endTime")String endTime,
                                       @Param("number")String number,
                                       @Param("type")String type);
}
