| | |
| | | package com.zhitan.common.constant; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @Description: 常量封装 |
| | | * @author: yxw |
| | |
| | | * 字符串数字 -1 |
| | | */ |
| | | public static final String STR_NUMBER_MINUS_ONE = "-1"; |
| | | /** |
| | | * 字符串数字 0 |
| | | */ |
| | | public static final String STR_NUMBER_0 = "0"; |
| | | |
| | | /** |
| | | * 字符串数字 1 |
| | | */ |
| | |
| | | */ |
| | | public static final int DIGIT_4 = 4; |
| | | /** |
| | | * 数字 5 |
| | | */ |
| | | public static final int DIGIT_5 = 5; |
| | | /** |
| | | * 数字 6 |
| | | */ |
| | | public static final int DIGIT_6 = 6; |
| | | /** |
| | | * 数字 7 |
| | | */ |
| | | public static final int DIGIT_7 = 7; |
| | | /** |
| | | * 数字 8 |
| | | */ |
| | | public static final int DIGIT_8 = 8; |
| | | /** |
| | | * 数字 9 |
| | | */ |
| | | public static final int DIGIT_9 = 9; |
| | | /** |
| | | * 数字 10 |
| | | */ |
| | | public static final int DIGIT_10 = 10; |
| | | /** |
| | | * 数字 11 |
| | | */ |
| | | public static final int DIGIT_11 = 11; |
| | | /** |
| | | * 数字 12 |
| | | */ |
| | | public static final int DIGIT_12 = 12; |
| | | /** |
| | | * 数字 13 |
| | | */ |
| | | public static final int DIGIT_13 = 13; |
| | | /** |
| | | * 数字 14 |
| | | */ |
| | | public static final int DIGIT_14 = 14; |
| | | /** |
| | | * 数字 15 |
| | | */ |
| | | public static final int DIGIT_15 = 15; |
| | | /** |
| | | * 数字 16 |
| | | */ |
| | | public static final int DIGIT_16 = 16; |
| | | /** |
| | | * 数字 23 |
| | | */ |
| | | public static final int DIGIT_23 = 23; |
| | | /** |
| | | * 数字 24 |
| | | */ |
| | | public static final int DIGIT_24 = 24; |
| | | /** |
| | | * 数字 30 |
| | | */ |
| | | public static final int DIGIT_30 = 30; |
| | | /** |
| | | * 数字 31 |
| | | */ |
| | | public static final int DIGIT_31 = 31; |
| | | /** |
| | | * 数字 32 |
| | | */ |
| | | public static final int DIGIT_32 = 32; |
| | | /** |
| | | * 数字 3600 |
| | | */ |
| | | public static final int DIGIT_3600 = 3600; |
| | | /** |
| | | * 数字 50 |
| | | */ |
| | | public static final int DIGIT_50 = 50; |
| | | /** |
| | | * 数字 59 |
| | | */ |
| | | public static final int DIGIT_59 = 59; |
| | | /** |
| | | * 数字 150 |
| | | */ |
| | | public static final int DIGIT_150 = 150; |
| | | /** |
| | | * 数字 100 |
| | | */ |
| | | public static final int DIGIT_100 = 100; |
| | |
| | | * 数字 -3 |
| | | */ |
| | | public static final int DIGIT_MINUS_3 = -3; |
| | | |
| | | |
| | | /** |
| | | * 数字 500 |
| | | */ |
| | | public static final int DIGIT_500 = 500; |
| | | |
| | | /** |
| | | * 数字 10000 |
| | | */ |
| | | public static final int DIGIT_10000 = 10000; |
| | | /** |
| | | * 数字 100000000 |
| | | */ |
| | | public static final int DIGIT_100000000 = 100000000; |
| | | /** |
| | | * 最小值初始化 |
| | | */ |
| | | public static final double MIN_INIT_VALUE = -99; |
| | | /** |
| | | * DOUBLE 数字0.0 |
| | | */ |
| | | public static final Double DOUBLE_ZERO = 0.0; |
| | | |
| | | /** |
| | | * 数字 -5 |
| | | */ |
| | | public static final int DIGIT_MINUS_5 = -5; |
| | | /** |
| | | * 数字 -6 |
| | | */ |
| | | public static final int DIGIT_MINUS_6 = -6; |
| | | /** |
| | | * 数字 -11 |
| | | */ |
| | | public static final int DIGIT_MINUS_11 = -11; |
| | | /** |
| | | * 数字 -12 |
| | | */ |
| | | public static final int DIGIT_MINUS_12 = -12; |
| | | |
| | | |
| | | /** |
| | | * 计算点识别规则 累积量 |
| | | */ |
| | |
| | | * 重算接口地址 |
| | | */ |
| | | public static final String RE_CALC_INTERFACE_ADDRESS = "http://127.0.0.1:8999/computing/recalc"; |
| | | |
| | | |
| | | //////////////////////////////// |
| | | |
| | | /** |
| | | * 正常状态 |
| | | */ |
| | | public static final Integer STATUS_NORMAL = 0; |
| | | |
| | | /** |
| | | * 禁用状态 |
| | | */ |
| | | public static final Integer STATUS_DISABLE = -1; |
| | | |
| | | /** |
| | | * 删除标志 |
| | | */ |
| | | public static final Integer DEL_FLAG_1 = 1; |
| | | |
| | | /** |
| | | * 未删除 |
| | | */ |
| | | public static final Integer DEL_FLAG_0 = 0; |
| | | |
| | | /** |
| | | * 系统日志类型: 登录 |
| | | */ |
| | | public static final int LOG_TYPE_1 = 1; |
| | | |
| | | /** |
| | | * 系统日志类型: 操作 |
| | | */ |
| | | public static final int LOG_TYPE_2 = 2; |
| | | |
| | | /** |
| | | * 操作日志类型: 查询 |
| | | */ |
| | | public static final int OPERATE_TYPE_1 = 1; |
| | | |
| | | /** |
| | | * 操作日志类型: 添加 |
| | | */ |
| | | public static final int OPERATE_TYPE_2 = 2; |
| | | |
| | | /** |
| | | * 操作日志类型: 更新 |
| | | */ |
| | | public static final int OPERATE_TYPE_3 = 3; |
| | | |
| | | /** |
| | | * 操作日志类型: 删除 |
| | | */ |
| | | public static final int OPERATE_TYPE_4 = 4; |
| | | |
| | | /** |
| | | * 操作日志类型: 倒入 |
| | | */ |
| | | public static final int OPERATE_TYPE_5 = 5; |
| | | |
| | | /** |
| | | * 操作日志类型: 导出 |
| | | */ |
| | | public static final int OPERATE_TYPE_6 = 6; |
| | | |
| | | /** |
| | | * 百分之0 |
| | | */ |
| | | public static final String PERCENTAGE_ZERO = "0.00%"; |
| | | |
| | | /** |
| | | * 百分号 |
| | | */ |
| | | public static final String PERCENTAGE_FLAG = "%"; |
| | | |
| | | /** |
| | | * 保留两位小数 |
| | | */ |
| | | public static final String KEEP_TWO_DECIMAL = "%.2f"; |
| | | |
| | | /** |
| | | * 租户1 |
| | | */ |
| | | public static final int TENANT_1 = 1; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * {@code 500 Server Error} (HTTP/1.0 - RFC 1945) |
| | | */ |
| | | public static final Integer SC_INTERNAL_SERVER_ERROR_500 = 500; |
| | | /** |
| | | * {@code 200 OK} (HTTP/1.0 - RFC 1945) |
| | | */ |
| | | public static final Integer SC_OK_200 = 200; |
| | | |
| | | /** |
| | | * 访问权限认证未通过 510 |
| | | */ |
| | | public static final Integer SC_JEECG_NO_AUTHZ = 510; |
| | | |
| | | /** |
| | | * 登录用户Shiro权限缓存KEY前缀 |
| | | */ |
| | | public static String PREFIX_USER_SHIRO_CACHE = "shiro:cache:org.jeecg.config.shiro.ShiroRealm.authorizationCache:"; |
| | | /** |
| | | * 登录用户Token令牌缓存KEY前缀 |
| | | */ |
| | | public static final String PREFIX_USER_TOKEN = "user:token:"; |
| | | |
| | | /** |
| | | * 唯一登录登录用户Token令牌缓存KEY前缀 |
| | | */ |
| | | public static final String PREFIX_ONLY_USER_TOKEN = "only:user:token:"; |
| | | |
| | | /** |
| | | * 唯一登录登录被离线后标识前缀 |
| | | */ |
| | | public static final String PREFIX_ONLY_USER_SINGLE_TOKEN = "prefix_only_user_single_token_"; |
| | | |
| | | /** |
| | | * 登录用户租户redis缓存信息名称 |
| | | */ |
| | | public static final String PREFIX_TENANT_INFO_NAME = "sys:tenant:name:"; |
| | | |
| | | /** |
| | | * Token缓存时间:3600秒即一小时 |
| | | */ |
| | | public static final int TOKEN_EXPIRE_TIME = 3600; |
| | | |
| | | |
| | | /** |
| | | * 0:一级菜单 |
| | | */ |
| | | public static final Integer MENU_TYPE_0 = 0; |
| | | /** |
| | | * 1:子菜单 |
| | | */ |
| | | public static final Integer MENU_TYPE_1 = 1; |
| | | /** |
| | | * 2:按钮权限 |
| | | */ |
| | | public static final Integer MENU_TYPE_2 = 2; |
| | | |
| | | /** |
| | | * 通告对象类型(USER:指定用户,ALL:全体用户) |
| | | */ |
| | | public static final String MSG_TYPE_UESR = "USER"; |
| | | public static final String MSG_TYPE_ALL = "ALL"; |
| | | |
| | | /** |
| | | * 发布状态(0未发布,1已发布,2已撤销) |
| | | */ |
| | | public static final String NO_SEND = "0"; |
| | | public static final String HAS_SEND = "1"; |
| | | public static final String HAS_CANCLE = "2"; |
| | | |
| | | /** |
| | | * 阅读状态(0未读,1已读) |
| | | */ |
| | | public static final String HAS_READ_FLAG = "1"; |
| | | public static final String NO_READ_FLAG = "0"; |
| | | |
| | | /** |
| | | * 优先级(L低,M中,H高) |
| | | */ |
| | | public static final String PRIORITY_L = "L"; |
| | | public static final String PRIORITY_M = "M"; |
| | | public static final String PRIORITY_H = "H"; |
| | | |
| | | /** |
| | | * 短信模板方式 0 .登录模板、1.注册模板、2.忘记密码模板 |
| | | */ |
| | | public static final String SMS_TPL_TYPE_0 = "0"; |
| | | public static final String SMS_TPL_TYPE_1 = "1"; |
| | | public static final String SMS_TPL_TYPE_2 = "2"; |
| | | |
| | | /** |
| | | * 状态(0无效1有效) |
| | | */ |
| | | public static final String STATUS_0 = "0"; |
| | | public static final String STATUS_1 = "1"; |
| | | |
| | | /** |
| | | * 同步工作流引擎1同步0不同步 |
| | | */ |
| | | public static final Integer ACT_SYNC_1 = 1; |
| | | public static final Integer ACT_SYNC_0 = 0; |
| | | |
| | | /** |
| | | * 消息类型1:通知公告2:系统消息 |
| | | */ |
| | | public static final String MSG_CATEGORY_1 = "1"; |
| | | public static final String MSG_CATEGORY_2 = "2"; |
| | | |
| | | /** |
| | | * 是否配置菜单的数据权限 1是0否 |
| | | */ |
| | | public static final Integer RULE_FLAG_0 = 0; |
| | | public static final Integer RULE_FLAG_1 = 1; |
| | | |
| | | /** |
| | | * 是否用户已被冻结 1正常(解冻) 2冻结 |
| | | */ |
| | | public static final Integer USER_UNFREEZE = 1; |
| | | public static final Integer USER_FREEZE = 2; |
| | | |
| | | /** |
| | | * 字典翻译文本后缀 |
| | | */ |
| | | public static final String DICT_TEXT_SUFFIX = "_dictText"; |
| | | |
| | | /** |
| | | * 表单设计器主表类型 |
| | | */ |
| | | public static final Integer DESIGN_FORM_TYPE_MAIN = 1; |
| | | |
| | | /** |
| | | * 表单设计器子表表类型 |
| | | */ |
| | | public static final Integer DESIGN_FORM_TYPE_SUB = 2; |
| | | |
| | | /** |
| | | * 表单设计器URL授权通过 |
| | | */ |
| | | public static final Integer DESIGN_FORM_URL_STATUS_PASSED = 1; |
| | | |
| | | /** |
| | | * 表单设计器URL授权未通过 |
| | | */ |
| | | public static final Integer DESIGN_FORM_URL_STATUS_NOT_PASSED = 2; |
| | | |
| | | /** |
| | | * 表单设计器新增 Flag |
| | | */ |
| | | public static final String DESIGN_FORM_URL_TYPE_ADD = "add"; |
| | | /** |
| | | * 表单设计器修改 Flag |
| | | */ |
| | | public static final String DESIGN_FORM_URL_TYPE_EDIT = "edit"; |
| | | /** |
| | | * 表单设计器详情 Flag |
| | | */ |
| | | public static final String DESIGN_FORM_URL_TYPE_DETAIL = "detail"; |
| | | /** |
| | | * 表单设计器复用数据 Flag |
| | | */ |
| | | public static final String DESIGN_FORM_URL_TYPE_REUSE = "reuse"; |
| | | /** |
| | | * 表单设计器编辑 Flag (已弃用) |
| | | */ |
| | | public static final String DESIGN_FORM_URL_TYPE_VIEW = "view"; |
| | | |
| | | /** |
| | | * online参数值设置(是:Y, 否:N) |
| | | */ |
| | | public static final String ONLINE_PARAM_VAL_IS_TURE = "Y"; |
| | | public static final String ONLINE_PARAM_VAL_IS_FALSE = "N"; |
| | | |
| | | /** |
| | | * 文件上传类型(本地:local,Minio:minio,阿里云:alioss) |
| | | */ |
| | | public static final String UPLOAD_TYPE_LOCAL = "local"; |
| | | public static final String UPLOAD_TYPE_MINIO = "minio"; |
| | | public static final String UPLOAD_TYPE_OSS = "alioss"; |
| | | |
| | | /** |
| | | * 文档上传自定义桶名称 |
| | | */ |
| | | public static final String UPLOAD_CUSTOM_BUCKET = "eoafile"; |
| | | /** |
| | | * 文档上传自定义路径 |
| | | */ |
| | | public static final String UPLOAD_CUSTOM_PATH = "eoafile"; |
| | | /** |
| | | * 文件外链接有效天数 |
| | | */ |
| | | public static final Integer UPLOAD_EFFECTIVE_DAYS = 1; |
| | | |
| | | /** |
| | | * 员工身份 (1:普通员工 2:上级) |
| | | */ |
| | | public static final Integer USER_IDENTITY_1 = 1; |
| | | public static final Integer USER_IDENTITY_2 = 2; |
| | | |
| | | /** |
| | | * sys_user 表 username 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_SYS_USER_USERNAME = "uniq_sys_user_username"; |
| | | /** |
| | | * sys_user 表 work_no 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_SYS_USER_WORK_NO = "uniq_sys_user_work_no"; |
| | | /** |
| | | * sys_user 表 phone 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_SYS_USER_PHONE = "uniq_sys_user_phone"; |
| | | /** |
| | | * sys_user 表 email 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_SYS_USER_EMAIL = "uniq_sys_user_email"; |
| | | /** |
| | | * sys_quartz_job 表 job_class_name 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_JOB_CLASS_NAME = "uniq_job_class_name"; |
| | | /** |
| | | * sys_position 表 code 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_CODE = "uniq_code"; |
| | | /** |
| | | * sys_role 表 code 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_SYS_ROLE_CODE = "uniq_sys_role_role_code"; |
| | | /** |
| | | * sys_depart 表 code 唯一键索引 |
| | | */ |
| | | public static final String SQL_INDEX_UNIQ_DEPART_ORG_CODE = "uniq_depart_org_code"; |
| | | /** |
| | | * 在线聊天 是否为默认分组 |
| | | */ |
| | | public static final String IM_DEFAULT_GROUP = "1"; |
| | | /** |
| | | * 在线聊天 图片文件保存路径 |
| | | */ |
| | | public static final String IM_UPLOAD_CUSTOM_PATH = "imfile"; |
| | | /** |
| | | * 在线聊天 用户状态 |
| | | */ |
| | | public static final String IM_STATUS_ONLINE = "online"; |
| | | |
| | | /** |
| | | * 在线聊天 SOCKET消息类型 |
| | | */ |
| | | public static final String IM_SOCKET_TYPE = "chatMessage"; |
| | | |
| | | /** |
| | | * 在线聊天 是否开启默认添加好友 1是 0否 |
| | | */ |
| | | public static final String IM_DEFAULT_ADD_FRIEND = "1"; |
| | | |
| | | /** |
| | | * 在线聊天 用户好友缓存前缀 |
| | | */ |
| | | public static final String IM_PREFIX_USER_FRIEND_CACHE = "sys:cache:im:im_prefix_user_friend_"; |
| | | |
| | | /** |
| | | * 考勤补卡业务状态 (1:同意 2:不同意) |
| | | */ |
| | | public static final String SIGN_PATCH_BIZ_STATUS_1 = "1"; |
| | | public static final String SIGN_PATCH_BIZ_STATUS_2 = "2"; |
| | | |
| | | /** |
| | | * 公文文档上传自定义路径 |
| | | */ |
| | | public static final String UPLOAD_CUSTOM_PATH_OFFICIAL = "officialdoc"; |
| | | /** |
| | | * 公文文档下载自定义路径 |
| | | */ |
| | | public static final String DOWNLOAD_CUSTOM_PATH_OFFICIAL = "officaldown"; |
| | | |
| | | /** |
| | | * WPS存储值类别(1 code文号 2 text(WPS模板还是公文发文模板)) |
| | | */ |
| | | public static final String WPS_TYPE_1 = "1"; |
| | | public static final String WPS_TYPE_2 = "2"; |
| | | |
| | | |
| | | public final static String X_ACCESS_TOKEN = "X-Access-Token"; |
| | | public final static String X_SIGN = "X-Sign"; |
| | | public final static String X_TIMESTAMP = "X-TIMESTAMP"; |
| | | public final static String TOKEN_IS_INVALID_MSG = "Token失效,请重新登录!"; |
| | | public final static String TOKEN_IS_SINGLE_MSG = "您已经在其他地方登录!"; |
| | | |
| | | /** |
| | | * 多租户 请求头 |
| | | */ |
| | | public final static String TENANT_ID = "tenant-id"; |
| | | |
| | | /** |
| | | * 微服务读取配置文件属性 服务地址 |
| | | */ |
| | | public final static String CLOUD_SERVER_KEY = "spring.cloud.nacos.discovery.server-addr"; |
| | | |
| | | /** |
| | | * 系统通告消息状态:0=未发布 |
| | | */ |
| | | public static final String ANNOUNCEMENT_SEND_STATUS_0 = "0"; |
| | | /** |
| | | * 系统通告消息状态:1=已发布 |
| | | */ |
| | | public static final String ANNOUNCEMENT_SEND_STATUS_1 = "1"; |
| | | /** |
| | | * 系统通告消息状态:2=已撤销 |
| | | */ |
| | | public static final String ANNOUNCEMENT_SEND_STATUS_2 = "2"; |
| | | |
| | | /** |
| | | * 故障报警设置点位模拟量 |
| | | */ |
| | | public static final String SEN_ALARM_CONF_VAL_TYPE_ANALOG = "analogQuantity"; |
| | | |
| | | /** |
| | | * 故障报警设置点位状态量 |
| | | */ |
| | | public static final String SEN_ALARM_CONF_VAL_TYPE_STATE = "stateQuantity"; |
| | | |
| | | public static final String WHERE = "WHERE"; |
| | | public static final String ADMIN = "admin"; |
| | | public static final String ADMIN_NAME = "管理员"; |
| | | public static final String LOCAL_IP = "127.0.0.1"; |
| | | |
| | | /** |
| | | * 常量字符串 空格 |
| | | */ |
| | | public static final String SPACE = " "; |
| | | /** |
| | | * 常量字符串 逗号 |
| | | */ |
| | | public static final String STR_COMMA = ","; |
| | | /** |
| | | * 下划线 |
| | | */ |
| | | public static final String STR_UNDERLINE = "_"; |
| | | /** |
| | | * 常量字符串 中文逗号 |
| | | */ |
| | | public static final String CHINESE_STR_COMMA = ","; |
| | | |
| | | /** |
| | | * 单减号 - |
| | | */ |
| | | public static final String SINGLE_MINUS_SIGN = "-"; |
| | | /** |
| | | * 斜线 / |
| | | */ |
| | | public static final String STR_SLASH = "/"; |
| | | /** |
| | | * 加号 + |
| | | */ |
| | | public static final String STR_PLUS = "+"; |
| | | /** |
| | | * 四舍五入 |
| | | */ |
| | | public static final String STR_ROUNDING = "%.2f"; |
| | | /** |
| | | * 字符串数字 0 |
| | | */ |
| | | public static final String STR_NUMBER_0 = "0"; |
| | | /** |
| | | * 字符串数字 0.00 |
| | | */ |
| | | public static final String STR_NUMBER_0_00 = "0.00"; |
| | | /** |
| | | * 字符串数字 0.0000 |
| | | */ |
| | | public static final String STR_NUMBER_0_0000 = "0.0000"; |
| | | /** |
| | | * 字符串数字 100% |
| | | */ |
| | | public static final String STR_NUMBER_100 = "100%"; |
| | | /** |
| | | * 字符串数字 0% |
| | | */ |
| | | public static final String STR_NUMBER_PERCENTAGE_0 = "0%"; |
| | | /** |
| | | * 字符串数字 100.00% |
| | | */ |
| | | public static final String STR_NUMBER_PERCENTAGE_100 = "100.00%"; |
| | | |
| | | /** |
| | | * 大写字母 H |
| | | */ |
| | | public static final String WORD_H = "H"; |
| | | /** |
| | | * 字母 LJL |
| | | */ |
| | | public static final String WORD_LJL = "LJL"; |
| | | |
| | | /** |
| | | * 小数0 |
| | | */ |
| | | public static final double DIGIT_DOUBLE_0 = 0D; |
| | | /** |
| | | * 小数0 |
| | | */ |
| | | public static final double DIGIT_DOUBLE_00 = 0.00D; |
| | | /** |
| | | * 小数1 |
| | | */ |
| | | public static final double DIGIT_DOUBLE_1 = 1.0D; |
| | | /** |
| | | * 小数100 |
| | | */ |
| | | public static final double DIGIT_DOUBLE_100 = 100D; |
| | | |
| | | /** |
| | | * 时间间隔15分钟 |
| | | */ |
| | | public static final int TIME_SPAN_MINUTES_15 = 1000 * 60 * 15; |
| | | /** |
| | | * 时间间隔60分钟 |
| | | */ |
| | | public static final int TIME_SPAN_MINUTES_60 = 1000 * 60 * 60; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 每年的月数 |
| | | */ |
| | | public static final int MONTHS_OF_YEAR = 12; |
| | | /** |
| | | * 每月的天数 |
| | | */ |
| | | public static final int DAYS_OF_MONTH = 31; |
| | | /** |
| | | * 每天的小时数 |
| | | */ |
| | | public static final int HOURS_OF_DAY = 24; |
| | | /** |
| | | * 每小时的分钟数 |
| | | */ |
| | | public static final int MINUTES_OF_HOUR = 60; |
| | | /** |
| | | * 每分钟的秒数 |
| | | */ |
| | | public static final int SECOND_OF_MINUTES = 60; |
| | | /** |
| | | * 一个点位一小时的数据量 |
| | | */ |
| | | public static final int DATA_AMOUNT_ONE_POINT_ONE_HOUR = 4; |
| | | |
| | | /** |
| | | * 计算点识别规则 累积量,sql查询使用 |
| | | */ |
| | | public static final String COMMON_STR_CALC_POINT_RULE_LJL_SQL = "\\_LJL"; |
| | | |
| | | /** |
| | | * 数据库查询综合能耗后缀 |
| | | */ |
| | | public static final String COMMON_STR_CALC_POINT_RULE_ZHNH_SQL = "\\_ZHNH"; |
| | | |
| | | /** |
| | | * 尖峰平谷生效配置 |
| | | */ |
| | | public static final String COMMON_JFPG_NOW_CONFIGURE = "NOW"; |
| | | /** |
| | | * 尖峰平谷待生效配置 |
| | | */ |
| | | public static final String COMMON_JFPG_NEXT_CONFIGURE = "NEXT"; |
| | | /*** |
| | | * 人民币单位 |
| | | */ |
| | | public static final String MONEY_UNIT_RMB = "元"; |
| | | /** |
| | | * 合计行数据名 |
| | | */ |
| | | public static final String TABLE_ROW_NAME_SUM = "合计"; |
| | | /** |
| | | * 显示字符串 - 费用 |
| | | */ |
| | | public static final String STRING_SHOW_COST = "费用"; |
| | | /** |
| | | * 显示字符串 - 费 |
| | | */ |
| | | public static final String STRING_SHOW_COST_CHARGE = "费"; |
| | | /** |
| | | * 显示字符串 - 用 |
| | | */ |
| | | public static final String STRING_SHOW_USE = "用"; |
| | | /** |
| | | * 显示字符串 - 量 |
| | | */ |
| | | public static final String STRING_SHOW_CONSUMPTION = "量"; |
| | | /** |
| | | * 固定列名 proportionTotal |
| | | */ |
| | | public static final String ENERGY_CONSUME_PROP_NAME_PROPORTION_TOTAL = "proportionTotal"; |
| | | /** |
| | | * 固定列名 consumeTotal |
| | | */ |
| | | public static final String ENERGY_CONSUME_PROP_NAME_CONSUME_TOTAL = "consumeTotal"; |
| | | /** |
| | | * 能源单位 |
| | | */ |
| | | public static final String ENERGY_CONSUME_PROP_NAME_CONSUME_UNIT = "consumeUnit"; |
| | | /** |
| | | * 固定列名 energyTotal |
| | | */ |
| | | public static final String ENERGY_CONSUME_PROP_NAME_ENERGY_TOTAL = "energyTotal"; |
| | | /** |
| | | * 固定列名 costTotal |
| | | */ |
| | | public static final String ENERGY_CONSUME_PROP_NAME_COST_TOTAL = "costTotal"; |
| | | /** |
| | | * 消耗量单位 |
| | | */ |
| | | public static final String ENERGY_CONSUME_PROP_NAME_ENERGY_UNIT = "energyUnit"; |
| | | /** |
| | | * 总有功功率点位模板code |
| | | */ |
| | | public static final String TAG_CODE_ZYGGL = "\\_ActivePower_Total"; |
| | | /** |
| | | * 总有功功率点位模板code |
| | | */ |
| | | public static final String TAG_CODE_ZYGGL_IN_CODE = "_ActivePower_Total"; |
| | | /** |
| | | * 有功功率Code |
| | | */ |
| | | public static final String TAG_CODE_ZYGGL_PART = "\\_ActivePower"; |
| | | /** |
| | | * 总无功功率点位模板code |
| | | */ |
| | | public static final String TAG_CODE_ZWGGL = "ReactivePower_Total"; |
| | | /** |
| | | * 无功功率Code |
| | | */ |
| | | public static final String TAG_CODE_ZWGGL_PART = "ReactivePower"; |
| | | /** |
| | | * 总功率因数 点位模板code |
| | | */ |
| | | public static final String TAG_CODE_GLYS = "PowerFactor_Total"; |
| | | /** |
| | | * 电流 |
| | | */ |
| | | public static final String TAG_CODE_CURRENT = "Current_"; |
| | | /** |
| | | * 电压 |
| | | */ |
| | | public static final String TAG_CODE_VOLTAGE = "Voltage_"; |
| | | /** |
| | | * 功率因数 |
| | | */ |
| | | public static final String TAG_CODE_FACTOR = "PowerFactor_"; |
| | | /** |
| | | * 功率因数 |
| | | */ |
| | | public static final String TAG_CODE_FACTOR_PART = "PowerFactor"; |
| | | /** |
| | | * A相 |
| | | */ |
| | | public static final String A_PHASE = "A"; |
| | | /** |
| | | * B相 |
| | | */ |
| | | public static final String B_PHASE = "B"; |
| | | /** |
| | | * C相 |
| | | */ |
| | | public static final String C_PHASE = "C"; |
| | | /** |
| | | * 能源计算类型(采集点) |
| | | */ |
| | | public static final String ENERGY_INDEX_TYPE_COLLECT = "COLLECT"; |
| | | /** |
| | | * 能源类型(计算点) |
| | | */ |
| | | public static final String ENERGY_INDEX_TYPE_CALCULATE = "CALCULATE"; |
| | | /** |
| | | * 总 |
| | | */ |
| | | public static final String TOTAL = "Total"; |
| | | /** |
| | | * name |
| | | */ |
| | | public static final String STR_NAME = "name"; |
| | | /** |
| | | * A相电流 |
| | | */ |
| | | public static final String TAG_CODE_CURRENT_A = "Current_A"; |
| | | /** |
| | | * B相电流 |
| | | */ |
| | | public static final String TAG_CODE_CURRENT_B = "Current_B"; |
| | | /** |
| | | * C相电流 |
| | | */ |
| | | public static final String TAG_CODE_CURRENT_C = "Current_C"; |
| | | /** |
| | | * A相电压 |
| | | */ |
| | | public static final String TAG_CODE_VOLTAGE_A = "Voltage_A"; |
| | | /** |
| | | * B相电压 |
| | | */ |
| | | public static final String TAG_CODE_VOLTAGE_B = "Voltage_B"; |
| | | /** |
| | | * C相电压 |
| | | */ |
| | | public static final String TAG_CODE_VOLTAGE_C = "Voltage_C"; |
| | | /** |
| | | * A相功率因数 |
| | | */ |
| | | public static final String TAG_CODE_FACTOR_A = "PowerFactor_A_Total"; |
| | | /** |
| | | * B相功率因数 |
| | | */ |
| | | public static final String TAG_CODE_FACTOR_B = "PowerFactor_B_Total"; |
| | | /** |
| | | * C相功率因数 |
| | | */ |
| | | public static final String TAG_CODE_FACTOR_C = "PowerFactor_C_Total"; |
| | | /** |
| | | * 总功率因数 |
| | | */ |
| | | public static final String TAG_CODE_FACTOR_TOTAL = "PowerFactor_Total"; |
| | | /** |
| | | * 电力负荷单位 |
| | | */ |
| | | public static final String ELECTRIC_LOAD_UNIT = "(kW)"; |
| | | /** |
| | | * 电力负荷单位 |
| | | */ |
| | | public static final String ELECTRIC_LOAD_UNIT_SHOW = "kW"; |
| | | /** |
| | | * 电流单位 A |
| | | */ |
| | | public static final String ELECTRICITY_CURRENT_UNIT_A = "A"; |
| | | /** |
| | | * 电压单位 V |
| | | */ |
| | | public static final String ELECTRICITY_VOLTAGE_UNIT_V = "V"; |
| | | /** |
| | | * 符号 - 百分号 |
| | | */ |
| | | public static final String SYMBOL_PERCENT = "%"; |
| | | /** |
| | | * 用水量、天然气量、蒸汽量单位 |
| | | */ |
| | | public static final String CUBIC_METER = "m³"; |
| | | /** |
| | | * 用电量单位 |
| | | */ |
| | | public static final String ELECTRICITY_CONSUMPTION = "kWh"; |
| | | /** |
| | | * 综合能耗单位 |
| | | */ |
| | | public static final String ENERGY_CONSUME = "tce"; |
| | | /** |
| | | * 时间显示字符后缀 |
| | | */ |
| | | public static final String TIME_UNIT_SHOW_HOUR = "时"; |
| | | /** |
| | | * 属性字段名称 value |
| | | */ |
| | | public static final String PROP_NAME_VALUE = "value"; |
| | | /** |
| | | * 属性字段名称 cost |
| | | */ |
| | | public static final String PROP_NAME_COST = "cost"; |
| | | /** |
| | | * 尖 |
| | | */ |
| | | public static final String TIP = "tip"; |
| | | /** |
| | | * 峰 |
| | | */ |
| | | public static final String PEAK = "peak"; |
| | | /** |
| | | * 平 |
| | | */ |
| | | public static final String FLAT = "flat"; |
| | | /** |
| | | * 谷 |
| | | */ |
| | | public static final String TROUGH = "trough"; |
| | | /** |
| | | * 占比 |
| | | **/ |
| | | public static final String ENERGY_ENTRY_PROPORTION = "proportion"; |
| | | /** |
| | | * 总数 |
| | | **/ |
| | | public static final String ENERGY_ENTRY_TOTAL = "total"; |
| | | /** |
| | | * 计算消耗的公式 |
| | | **/ |
| | | public static final String FEL_ENERGY_ENTRY_CONSUMPTION_CALC = "total*proportion"; |
| | | /** |
| | | * 标准时间 |
| | | **/ |
| | | public static final String STANDARD_TIME = "GMT+8"; |
| | | |
| | | /** |
| | | * 字符串OK |
| | | */ |
| | | public static final String STR_OK = "ok"; |
| | | |
| | | /** |
| | | * 补充位数0 |
| | | */ |
| | | public static final String COMPLEMENTARY_DIGIT_0 = "%02d"; |
| | | |
| | | |
| | | /** |
| | | * 电压等级 |
| | | */ |
| | | public static final String GENERAL_STR_DYDJ = "电压等级"; |
| | | /** |
| | | * 电压等级单位 |
| | | */ |
| | | public static final String GENERAL_STR_DYDJ_UNIT = "kV"; |
| | | /** |
| | | * 变压器台数 |
| | | */ |
| | | public static final String GENERAL_STR_BYQTS = "变压器台数"; |
| | | /** |
| | | * 变压器台数单位 |
| | | */ |
| | | public static final String GENERAL_STR_BYQTS_UNIT = "台"; |
| | | /** |
| | | * 装机容量 |
| | | */ |
| | | public static final String GENERAL_STR_ZJRL = "装机容量"; |
| | | /** |
| | | * 装机容量单位 |
| | | */ |
| | | public static final String GENERAL_STR_ZJRL_UNIT = "kVA"; |
| | | /** |
| | | * 运行容量 |
| | | */ |
| | | public static final String GENERAL_STR_YXRL = "运行容量"; |
| | | /** |
| | | * 有功功率 |
| | | */ |
| | | public static final String GENERAL_STR_YGGL = "有功功率"; |
| | | /** |
| | | * 无功功率 |
| | | */ |
| | | public static final String GENERAL_STR_WGGL = "无功功率"; |
| | | /** |
| | | * 无功功率单位 |
| | | */ |
| | | public static final String GENERAL_STR_WGGL_UNIT = "kvar"; |
| | | /** |
| | | * 能源对比-同比 |
| | | */ |
| | | public static final String ENERGY_COMPARISON_YOY = "YOY"; |
| | | /** |
| | | * 能源对比-环比 |
| | | */ |
| | | public static final String ENERGY_COMPARISON_MOM = "MOM"; |
| | | /** |
| | | * 启动 |
| | | */ |
| | | public static final String START = "启动"; |
| | | /** |
| | | * 停止 |
| | | */ |
| | | public static final String STOP = "停止"; |
| | | |
| | | /*** |
| | | * 单位-亿千瓦时 |
| | | */ |
| | | public static final String UNIT_TWH = "亿 Kwh"; |
| | | |
| | | /*** |
| | | * 单位-万千瓦时 |
| | | */ |
| | | public static final String UNIT_MILLION_KWH = "万 Kwh"; |
| | | |
| | | /*** |
| | | * 单位-吨 |
| | | */ |
| | | public static final String UNIT_TONS = "吨"; |
| | | |
| | | /*** |
| | | * 单位-字母-吨 |
| | | */ |
| | | public static final String UNIT_LETTERS_TONS = "t"; |
| | | /*** |
| | | * 单位转换-百-100 |
| | | */ |
| | | public static final BigDecimal UNIT_CONVERSION_100 = new BigDecimal(DIGIT_100); |
| | | |
| | | /*** |
| | | * 单位转换-吨-1000 |
| | | */ |
| | | public static final BigDecimal UNIT_CONVERSION_1000 = new BigDecimal(DIGIT_1000); |
| | | |
| | | /*** |
| | | * 单位转换-万-10000 |
| | | */ |
| | | public static final BigDecimal UNIT_CONVERSION_10000 = new BigDecimal(DIGIT_10000); |
| | | |
| | | /*** |
| | | * 单位转换-亿-100000000 |
| | | */ |
| | | public static final BigDecimal UNIT_CONVERSION_100000000 = new BigDecimal(DIGIT_100000000); |
| | | |
| | | /** |
| | | * 字典-碳排放系数 |
| | | */ |
| | | public static final String DICT_CARBON_COEFFICIENT = "carbon_emission_coefficient"; |
| | | |
| | | /** |
| | | * WEIGHTY |
| | | */ |
| | | public static final String WEIGHTY = "WEIGHTY"; |
| | | |
| | | /** |
| | | * 厂 |
| | | */ |
| | | public static final String ENERGY_UNIT_TYPE_FACTORY = "FACTORY"; |
| | | |
| | | /** |
| | | * 车间 |
| | | */ |
| | | public static final String ENERGY_UNIT_TYPE_WORKPLACE = "WORKPLACE"; |
| | | |
| | | /** |
| | | * 工序 |
| | | */ |
| | | public static final String ENERGY_UNIT_TYPE_PROCESS = "PROCESS"; |
| | | |
| | | /** |
| | | * 设备 |
| | | */ |
| | | public static final String ENERGY_UNIT_TYPE_DEVICE = "DEVICE"; |
| | | |
| | | |
| | | } |