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.RMpPartHarmonicDetailD;
import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailD;
import com.njcn.harmonic.pojo.po.RMpSurplusHarmonicDetailM;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * RMpSurplusHarmonicDetailDMapper
 *
 * @author qijian
 * @version 1.0.0
 * @createTime 2022/12/8 - 15:21
 */
public interface RMpSurplusHarmonicDetailDMapper extends MppBaseMapper<RMpSurplusHarmonicDetailD> {

    RMpSurplusHarmonicDetailM getSurplusSumByData(@Param("lineId") String lineId, @Param("startTime") LocalDate startTime, @Param("endTime") LocalDate endTime);

    Map<String, Object> getSurplusSum(@Param("startTime") String startTime, @Param("endTime") String endTime, @Param("lineIds") List<String> lineIds);

    /**
     * 获取监测点稳态指标超标明细日表2数据
     *
     * @param time 时间
     * @return 集合
     */
    List<RMpSurplusHarmonicDetailD> getHarmonicDetailDayTwo(@Param("time") String time, @Param("lineList") List<String> lineList);
}
