package com.njcn.prepare.harmonic.mapper.mysql.line;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import com.njcn.harmonic.pojo.po.RMpVThd;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 谐波畸变率排名 Mapper 接口
 * </p>
 *
 * @author xiaoyao
 * @since 2022-11-07
 */
public interface RMpVThdMapper extends MppBaseMapper<RMpVThd> {

    int insertRate(@Param("item") Map<String, Object> item);

    /**
     *  从r_stat_data_v_d中获取畸变率的最大值
     *  phasic_type = A、B、C && value_type = CP95
     */
    List<RMpVThd> getVThdData(@Param("time") String time, @Param("lineList")List<String> lineList);
}
