package com.njcn.csdevice.constant;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * 常量类
 * @author qijian
 * @version 1.0.0
 * @date 2022年11月11日 09:56
 */
public interface DataParam {
    List<String> phases = Stream.of("A","B","C","T").collect(Collectors.toList());
    List<String> statMethods = Stream.of("avg","max","min","cp95").collect(Collectors.toList());
    long FILE_SIZE = 10 * 1024 * 1024;
    //便携式设备编码(用于某些业务判断)
    String portableDevType = "8b45cf6b7f5266e777d07c166ad5fa77";

    //统计类型配置-便携式设备-稳态指标的ID(用于某些业务判断)
    String portableDevStatisticalId = "bce2dfdfb46c4d96e92584def276d1c8";

    //统计类型配置-便携式设备-稳态指标-实时数据-指标的ID(用于某些业务判断)
    String portableDevStatisticaTrendlId = "91f4cbe168f97b680192aa133c6e2e78";

    //统计类型配置-便携式设备-稳态指标下的三个分组ID 对应国标限值字段
    Map<String,String> overlimitsGroup = new HashMap<String,String>(){{
        put("6d5470f509ca271d7108a86e83bb283f","uharm");
        put("ae31115b83f02f03a0d3bd65cb017121","inuharm");
        put("8dc260f16280184e2b57d26668dc00b1","iharm");
    }};

    //便携式设备默认统计方式
    String portableDevStatisticalMethods = "cp95";

    //DecimalFormat格式化
    String DecimalFormatStr = "#0.0000";

    //DecimalFormat格式化
    String startTime = " 00:00:00";

    String endTime = " 23:59:59";

    String timeFormat = "yyyy-MM-dd HH:mm:ss";

    String portableDev = "便携式设备";

    String PORTABLE_SYSTEM = "便携式系统";

    String WIRELESS_PROJECT = "无线项目";

    String WIRELESS_PROJECT_ID = "WIRELESS_PROJECT_ID";

    String governmentDev = "治理设备";

    String GOVERNANCE_SYSTEM = "治理系统";

    String cldDev = "监测设备";

    String EvtParamPhase = "Evt_Param_Phase";

    String EvtParamDepth = "Evt_Param_VVaDepth";
    String EVTPARAMTM  ="Evt_Param_Tm";

    String evtData = "evt_data";

    String wlRecordPath = "test/";

    //中断标志及ele_epd_pqd表中中断事件ID、NAME
    List<Short> intrStr = Arrays.asList((short)0,(short)26,(short)40,(short)54,(short)68,(short)82);
    String intrStrId = "84aed85e7be48d59fcd59e1c8c8622ed";
    String intrStrName = "Evt_Sys_IntrStr";

    //暂降标志及ele_epd_pqd表中暂降事件ID
    List<Short> dipStr = Arrays.asList((short)1,(short)27,(short)41,(short)55,(short)69,(short)83);
    String dipStrId = "145c96b0e2d359f7c1c00312eeeacaec";
    String dipStrName = "Evt_Sys_DipStr";

    //暂升标志及ele_epd_pqd表中暂升事件ID
    List<Short> swlStr = Arrays.asList((short)13,(short)36,(short)50,(short)64,(short)78,(short)92);
    String swlStrId = "f9be85a431084a729748eee786ee1450";
    String swlStrName = "Evt_Sys_SwlStr";

    String wlRecordUpload = "Offline_Data_Upload";

    String dataStr = "data";

    String nameStr = "name";

    String phaseStr = "phase";

}
