jinpengyong
2021-08-19 c98bb582d6a313940310a5e05bc80bafe386e3a2
screen-common/src/main/java/com/moral/constant/Constants.java
@@ -4,45 +4,210 @@
 * 通用常量信息
 */
public class Constants {
    /**
     * 操作成功
     */
    public static final String MSG_OPERATION_SUCCESS = "操作成功!";
    /**
     * 操作失败
     */
    public static final String MSG_OPERATION_FAILED = "操作失败!";
    /*
     * 被删除标识
     * */
    public static final String DELETE = "1";
    /*
    * token无效
    * */
    public static final String MSG_TOKEN_ERROR = "token无效,请重新登陆";
     * 未删除标识
     * */
    public static final String NOT_DELETE = "0";
    /*
    * token生成失败
    * */
    public static final String MSG_TOKEN_CREATE_ERROR = "token生成失败,请联系管理员";
    /**
     * 操作成功code
     */
    public static final int CODE_OPERATION_SUCCESS = 0;
    /**
     * 操作失败code
     */
    public static final int CODE_OPERATION_FAILED = -1;
    /**
     * token校验失败
     */
    public static final int CODE_TOKEN_ERROR = -10;
     * 后台系统验证码配置列名
     * */
    public static final String MANAGE_VERIFICATIONCODE_COLUMN = "type";
    /*
    * token生成失败
     * web端系统验证码配置列名
     * */
    public static final String FRONT_VERIFICATIONCODE_COLUMN = "type";
    /*
     * 后台系统验证码列对应的值
     * */
    public static final String MANAGE_VERIFICATIONCODE_VALUE = "manage_verificationCode";
    /*
     * web端验证码配置列名
     * */
    public static final String FRONT_ERIFICATIONCODE_VALUE = "front_verificationCode";
    /*
     * 验证码开启标识
     * */
    public static final String VERFICATIONCODE_OPEN = "1";
    /*
     * 验证码关闭标识
     * */
    public static final String VERFICATIONCODE_CLOSE = "0";
    /*
     * 查询正序标识
     * */
    public static final String ORDER_ASC = "0";
    /*
     * 查询倒序标识
     * */
    public static final String ORDER_DESC = "1";
    /*
     * 删除子组织标识
     * */
    public static final Integer DELETE_CHILDREN_ORG = 1;
    /*
     * 网页端渠道
     * */
    public static final String WEB_CHANNEL = "0";
    /*
     * 登陆操作类型
     * */
    public static final String LOGIN_OPERTATE_TYPE = "0";
    /*
     * 添加操作类型
     * */
    public static final String INSERT_OPERATE_TYPE = "1";
    /*
     * 更新操作类型
     * */
    public static final String UPDATE_OPERATE_TYPE = "2";
    /*
     * 删除操作类型
     * */
    public static final String DELETE_OPERATE_TYPE = "3";
    /*
     * 数据库中公式原单位的占位符
     * */
    public static final String FORMULA_PLACEHOLDER = "{0}";
    /*
     * 单位字典类型
     * */
    public static final String SYSTEM_DICT_TYPE_UNIT = "unit";
    /*
     * 行业字典类型
     * */
    public static final String SYSTEM_DICT_TYPE_PROFESSION = "profession";
    /*
     * 设备工艺字典类型
     * */
    public static final String SYSTEM_DICT_TYPE_TECH = "tech";
    /*
     * 设备检测器字典类型
     * */
    public static final String SYSTEM_DICT_TYPE_DETECTOR = "detector";
    /*
     * 采购商字典类型
     * */
    public static final String SYSTEM_DICT_TYPE_PURCHASER = "purchaser";
    /*
     * 未校准数据表后缀
     * */
    public static final String UN_ADJUST = "unadjust";
    /*
     * 离线设备状态码
     * */
    public static final String DEVICE_STATE_OFFLINE = "0";
    /*
     * 臭氧code
     * */
    public static final String SENSOR_CODE_O3 = "a05024";
    /*
     * vocs code
     * */
    public static final String SENSOR_CODE_VOCS = "a99054";
    /*
     * 温度code
     * */
    public static final String SENSOR_CODE_TEMP = "a01001";
    /*
     * 风向code
     * */
    public static final String SENSOR_CODE_WIND_DIR = "a01008";
    /*
     * 风速code
     * */
    public static final String SENSOR_CODE_WIND_SPEED = "a01007";
    /*
     * 一氧化碳code
     * */
    public static final String SENSOR_CODE_CO = "a21005";
    /*
     * PM2.5 code
     * */
    public static final String SENSOR_CODE_PM25 = "a34004";
    /*
     * PM10 code
     * */
    public static final String SENSOR_CODE_PM10 = "a34002";
    /*
     * SO2 code
     * */
    public static final String SENSOR_CODE_SO2 = "a21026";
    /*
     * NO2 code
     * */
    public static final String SENSOR_CODE_NO2 = "a21004";
    /*
     * 经度 code
     * */
    public static final String SENSOR_CODE_LON = "flylon";
    /*
     * 纬度 code
     * */
    public static final String SENSOR_CODE_LAT = "flylat";
    /**
     * The Constant NULL_VALUE.
     */
    public static final String NULL_VALUE = "N/V";
    /*
    * 数据有效的标记位,有效
    * */
    public static final int CODE_TOKEN_CREATE_ERROR = -11;
    public static final String MARKER_BIT_TRUE = "N";
    /*
    * 数据有效的标记位,有效性不足
    * */
    public static final String MARKER_BIT_FALSE = "H";
    /*
    * 数据中各个传感器代表标记位的key后缀
    * */
    public static final String MARKER_BIT_KEY = "Flag";
    /*
     * 特殊设备数据批次
     * */
    public static final String SENSOR_CODE_SPECIAL_BATCH = "a00000";
}