模拟数据上报修改
This commit is contained in:
parent
28b1bf7ede
commit
27d0d095ab
@ -251,6 +251,7 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node
|
||||
Map<String, Object> lowSpeedValueMap = new HashMap<>();
|
||||
|
||||
//数据入redis
|
||||
if (values != null){
|
||||
Iterator<String> keysHigh = values.fieldNames();
|
||||
while (keysHigh.hasNext()) {
|
||||
String fieldName = keysHigh.next();
|
||||
@ -258,6 +259,9 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node
|
||||
keyValueMap.put(key, values.get(fieldName));
|
||||
}
|
||||
log.info("values解析成功");
|
||||
}
|
||||
|
||||
if (archiveValues != null){
|
||||
Iterator<String> archiveKeys = archiveValues.fieldNames();
|
||||
while (archiveKeys.hasNext()) {
|
||||
String fieldName = archiveKeys.next();
|
||||
@ -271,6 +275,7 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node
|
||||
}
|
||||
}
|
||||
log.info("archive解析成功");
|
||||
}
|
||||
//更新td
|
||||
if (!highSpeedValueMap.isEmpty()) {
|
||||
List<RTData> highSpeedData = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user