diff --git a/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/TdEngineConstants.java b/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/TdEngineConstants.java index dd4c569..d52282f 100644 --- a/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/TdEngineConstants.java +++ b/hw-common/hw-common-core/src/main/java/com/hw/common/core/constant/TdEngineConstants.java @@ -65,6 +65,11 @@ public class TdEngineConstants { public static final int ST_TAG_MONITORUNITID_TYPE = 2; + + /*能源部分*/ + public static final String EMS_DATABASE_NAME = "db_hwmes"; + public static final String EMS_TABLE_NAME_PREFIX = "t_e_"; + /** * 需要转换的key */ @@ -131,4 +136,13 @@ public class TdEngineConstants { return DEFAULT_DEVICE_STATUS_TABLE_NAME_PREFIX + deviceId; } + /** + * 获取能源子表的表名称 + * @param monitorId 计量设备编号 + * @return String + */ + public static String getEmsTableName(String monitorId){ + return EMS_TABLE_NAME_PREFIX + monitorId; + } + }