TDEngineConstants默认子表名称方法

1.3.5
xins 11 months ago
parent 19400d5e2b
commit e415f8610c

@ -65,6 +65,11 @@ public class TdEngineConstants {
public static final int ST_TAG_MONITORUNITID_TYPE = 2; 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 * key
*/ */
@ -131,4 +136,13 @@ public class TdEngineConstants {
return DEFAULT_DEVICE_STATUS_TABLE_NAME_PREFIX + deviceId; return DEFAULT_DEVICE_STATUS_TABLE_NAME_PREFIX + deviceId;
} }
/**
*
* @param monitorId
* @return String
*/
public static String getEmsTableName(String monitorId){
return EMS_TABLE_NAME_PREFIX + monitorId;
}
} }

Loading…
Cancel
Save