|
@@ -57,7 +57,7 @@ public class CacheDataProcessor extends DeviceDataProcessor {
|
|
|
measuringDataMap.put(Constants.TIME_MEASURING_CODE,timeMeasuringData);
|
|
|
// 2,将数据缓存到Redis中
|
|
|
Long deviceId = data.getDeviceId();
|
|
|
- String cacheKey = Constants.DATA_CACHE_PREFIX + deviceId ;
|
|
|
+ String cacheKey = String.valueOf(deviceId);
|
|
|
redisUtil.set(cacheKey, JSON.toJSONString(measuringDataMap));
|
|
|
// 3,将最后更新时间更新到数据库
|
|
|
Device update = new Device();
|