IPgService.java 4.8 KB
package com.skua.modules.system.service;

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

public interface IPgService {
    Map<String, Object> queryTrendDataNew(String fields, String factoryId, String startTime, String endTime);

    Map<String, Object> queryFactoryInfosForMonitorByXT(String departId, String substring);

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Description 根据PG计算表的数据查询昨天的数据
     * @Date 2021-03-04 9:49
     * @Param []
     **/
    List<Map<String, Object>> queryDayDataByCountData(String today, String yesterday, String device_id);


    /**
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @Description 查询旋思盒子在线离线状态
     * @Date 2021-04-16 11:42
     * @Param []
     **/
    List<Map<String, Object>> queryFactoryStatus();


    /**
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @Description 查询时间间隔内的指标值
     * @Date 2021-04-21 15:30
     * @Param [departId, alarmProgramCodeStr, startTime, endTime]
     **/
    List<Map<String, Object>> queryAlarmInfoByXT(String departId, String alarmProgramCodeStr, String startTime, String endTime);

    /**
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @Description 查询时间段之间的数据
     * @Date 2021-04-29 15:21
     * @Param [fields, departId, startTime, endTime]
     **/
    List<Map<String, Object>> queryTrendData(String fields, String departId, String startTime, String endTime);


    /**
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @Description 查询流量时间段之间的数据
     * @Date 2021-04-29 15:21
     * @Param [fields, departId, startTime, endTime]
     **/
    List<Map<String, Object>> queryTrendDataByLL(String fields, String departId, String startTime, String endTime);

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Description 获取点的实时数据
     * @Date 2021-06-25 13:46
     * @Param [substring]
     **/
    Map<String, Object> queryMonitorByXTFeilds(String substring);

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Description 获取plc诊断点的状态
     * @Date 2021-06-25 13:46
     * @Param [substring]
     **/
    Map<String, Object> queryMonitorByFeildsTime(String substring);

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Description 获取设备故障点为1的最早时间
     * @Date 2021-08-31 17:52
     * @Param [departId, alarmProgramCodeStr, toString, toString1]
     **/
    Map<String, Object> queryEquipAlarmInfoByXT(String departId, String alarmProgramCodeStr, String toString, String toString1);

    /**
     * @return java.util.List<java.util.Map < java.lang.String, java.lang.Object>>
     * @throws Exception
     * @Description 判断数据长期不变
     * @Date 2021-09-03 14:49
     * @Param [toString, time, formatAddTime]
     **/
    Map<String, Set<String>> queryDataSameData(String departId,String toString, String startTime, String endTime) throws Exception;

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Description 获取点的实时数据(超时返回空)3分钟
     * @Date 2021-09-07 9:33
     * @Param [toString]
     **/
    Map<String, Object> queryMonitorByXTFeildsTime(String toString);

    /**
     * @return java.util.Map<java.lang.String, java.lang.Object>
     * @Description 设备点
     * @Date 2021-09-07 12:00
     * @Param [toString]
     **/
    Map<String, Object> queryMonitorByXTFeildsEquipTime(String toString);

    /**
     * <pre>
     * 测试数据
     * </pre>
     *
     * @param factoryId
     * @param list
     * @author Yangsong,2022-06-18 13:40
     * @Description: TODO(这里描述这个方法的需求变更情况)
     */
    Map<String, Object> queryTrendDataTest(String factoryId, List<Map<String, Object>> list, String type);

    /**
     * <pre>
     * 测试数据
     * </pre>
     *
     * @param factoryId
     * @param list
     * @author Yangsong,2022-06-18 13:40
     * @Description: TODO(这里描述这个方法的需求变更情况)
     */
    Map<String, Object> queryTrendDataTestApp(String factoryId, List<Map<String, Object>> list, String type);

    /**
     * <pre>
     * 测试趋势数据
     * </pre>
     *
     * @param id
     * @param factoryId
     * @param startTime
     * @param endTime
     * @author Yangsong,2022-06-18 14:12
     * @Description: TODO(这里描述这个方法的需求变更情况)
     */
    Map<String, Object> queryTrendDataNewTest(List<Map<String, Object>> id, String factoryId, String startTime, String endTime);

    Map<String, Object> queryDayData(String fields, String deviceId, String day);
}