From e415f8610cc3e3e5a9858b85cf3ddf8c8fb58f5c Mon Sep 17 00:00:00 2001 From: xins Date: Thu, 21 Dec 2023 11:33:11 +0800 Subject: [PATCH] =?UTF-8?q?TDEngineConstants=E9=BB=98=E8=AE=A4=E5=AD=90?= =?UTF-8?q?=E8=A1=A8=E5=90=8D=E7=A7=B0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hw/common/core/constant/TdEngineConstants.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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; + } + }