package com.zksy.base.warning.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

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

public interface IEarlyWarningReceiveEfficiencyService {

    /**
     * 获取接警效率概览指标
     */
    Map<String, Object> getEfficiencyOverview(LocalDateTime startTime,
                                              LocalDateTime endTime,
                                              String warningType,
                                              String warningSpecial,
                                              String status);

    /**
     * 获取接警时效区间分布
     */
    List<Map<String, Object>> getEfficiencyRange(LocalDateTime startTime,
                                                 LocalDateTime endTime,
                                                 String warningType,
                                                 String warningSpecial,
                                                 String status);

    /**
     * 按预警类型统计平均接警时效
     */
    List<Map<String, Object>> getEfficiencyByType(LocalDateTime startTime, LocalDateTime endTime);

    /**
     * 分页查询接警时效明细列表
     */
    IPage<Map<String, Object>> queryEfficiencyPage(Page<Map<String, Object>> page,
                                                   LocalDateTime startTime,
                                                   LocalDateTime endTime,
                                                   String warningType,
                                                   String warningSpecial,
                                                   String status,
                                                   String sortType);
}