Constants.java 1.99 KB
package cn.com.glsx.admin.common.constants;

/**
 * @Desc:公共的常量类
 * @Author huangxc
 * @Date 2021/5/22
 */
public final class Constants {

    /**
     * 删除标识 -1:删除
     */
    public static final Integer DELETE_FLAG = -1;

    /**
     * 广汽离线设备时间:一天 单位 s/秒 注:在sql中大多是秒,在java代码中大多是毫秒
     */
    public static final long OFFLINE_TIME_GQ = 24 * 3600L;

    /**
     * 其他公司 设备离线时间:三天 单位 s/秒
     */
    public static final long OFFLINE_TIME_OTHER = 3 * 24 * 3600L;

    /**
     * 有源在线时间点 6分钟 单位 毫秒/ms
     */
    public static final long ONLINE_SOURCE_TIME = 6 * 60 * 1000L;
    /**
     * 字典表中车辆车型的type
     */
    public static final String TRIALDRIVE_VEHICLE_MODEL = "trialdrive_vehicle_model";
    /**
     * 字典表中试驾车辆配置的type
     */
    public static final String TRIALDRIVE_VEHICLE_CONFIG = "trialdrive_vehicle_config";

    /**
     * 同步渠道 timed_task:定时任务渠道
     */
    public static final String SYNC_CHANNEL_TIMED_TASK = "edun_timed_task";

    /**
     * 厂商ID-博实结
     */
    public static final String BSJ_FACTORY_ID = "BSJ";

    /**
     * 设备调频模式 0 追车模式;1 闹钟模式;2 星期模式;3 初始化模式
     */
    public static final int ADJ_FREQ_CATCHING = 0;
    public static final int ADJ_FREQ_TIMER = 1;
    public static final int ADJ_FREQ_WEEK = 2;
    public static final int ADJ_FREQ_INITIAL = 3;

    /**
     * 过滤(开)ON
     */
    public static final int FILTER_GPS_BS_ON = 1;

    /**
     * 过滤(关)OFF
     */
    public static final int FILTER_GPS_BS_OFF = 0;

    /**
     * xlsx 文件拓展名
     */
    public static final String XLSX_FILE_EXTENSION = "xlsx";

    /**
     * 定位类型 GPS
     */
    public static final String POI_TYPE_GPS = "GPS";

    /**
     * 定位类型 基站
     */
    public static final String POI_TYPE_BS = "基站";
}