数据入库redis修改
This commit is contained in:
parent
24a6132f3b
commit
aa1f15a5a8
@ -249,8 +249,7 @@ public class DataServiceImpl implements DataService {
|
||||
while (keysHigh.hasNext()) {
|
||||
String fieldName = keysHigh.next();
|
||||
String key = String.format("RT:[%s]:[%s]", deviceId, fieldName);
|
||||
keyValueMap.put(key, values.get(fieldName).asDouble());
|
||||
|
||||
keyValueMap.put(key,values.get(fieldName));
|
||||
}
|
||||
adminRedisTemplate.mSet(keyValueMap);
|
||||
// Long dataTime = data.getTime();
|
||||
|
Loading…
Reference in New Issue
Block a user