初始化设备id物模型code映射缓存
This commit is contained in:
parent
fd7d8bd2c8
commit
1d1e1b80e3
@ -32,9 +32,6 @@ public class TDEngineService {
|
||||
|
||||
private HikariDataSource hikariDataSource;
|
||||
|
||||
@Autowired
|
||||
private DataServiceImpl dataService;
|
||||
|
||||
@Value("${tdengine.url}")
|
||||
private String url;
|
||||
|
||||
@ -353,7 +350,7 @@ public class TDEngineService {
|
||||
sb.append("c");
|
||||
sb.append(dv.getDeviceId());
|
||||
sb.append(" using c_");
|
||||
sb.append(dataService.deviceModelMap.get(dv.getDeviceId().toString()));
|
||||
sb.append(dv.getModelCode());
|
||||
sb.append("_").append(dv.getIotModelField());
|
||||
sb.append(" tags (");
|
||||
sb.append(dv.getDeviceId());
|
||||
|
@ -20,4 +20,6 @@ public class CalculateRTData {
|
||||
private Object dataValue;
|
||||
|
||||
private String iotModelField;
|
||||
|
||||
private String modelCode;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user