|
|
@ -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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|