package com.njcn.event.mapper.distribution;

import com.njcn.event.pojo.po.EventDistributionStatisticsPO;
import com.njcn.event.pojo.po.EventDurationLineChartPO;
import com.njcn.event.pojo.po.EventFeatureAmplitudeLineChartPO;
import com.njcn.event.pojo.po.RmpEventDetailPO;
import com.njcn.event.pojo.vo.EventDipShortDistributionVO;
import com.njcn.event.pojo.vo.EventRiseDistributionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

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


/***
 *
 * @author jianghaifei
 * @date 2022-11-08 09:26
 * @return
 */

@Mapper
public interface PwEventDistributionStatisticsMapper {

    /**
     * 获取监测点暂态事件明细数据
     *
     * @param monitorIdList 监测点id
     * @param startTime     开始时间
     * @param endTime       结束时间
     * @return 监测点暂态事件明细数据
     */
    List<RmpEventDetailPO> getRmpEventDetail(@Param("monitorIdList") List<String> monitorIdList,
                                             @Param("startTime") String startTime,
                                             @Param("endTime") String endTime);


    /***
     * 获取监测点电压暂降和短时中断分布情况
     * @author jianghaifei
     * @date 2022-11-8 09:26:34
     * @param map
     * @return com.njcn.event.pojo.vo.EventDipShortDistributionVO
     */
    EventDipShortDistributionVO getEventDipShortDistributionByCond(Map<String, Object> map);

    /***
     * 获取监测点电压暂升分布情况
     * @author jianghaifei
     * @date 2022-11-8 09:26:29
     * @param map
     * @return com.njcn.event.pojo.vo.EventRiseDistributionVO
     */
    EventRiseDistributionVO getEventRiseDistributionByCond(Map<String, Object> map);
}
