|
|
@@ -46,7 +46,7 @@ public class IotDevicelasteddataServiceImpl implements IIotDevicelasteddataServi
|
|
|
iotDevicelasteddata.setDevldDelstatus("0");
|
|
|
|
|
|
this.redisCacheManager.setCacheObject(
|
|
|
- RedisCacheKey.SYS_RES, iotDevicelasteddata.getDevBid(),
|
|
|
+ RedisCacheKey.IOT_DEV_LASTED_DATA, iotDevicelasteddata.getDevBid(),
|
|
|
iotDevicelasteddata, expireTime, TimeUnit.SECONDS
|
|
|
);
|
|
|
}
|
|
|
@@ -61,7 +61,7 @@ public class IotDevicelasteddataServiceImpl implements IIotDevicelasteddataServi
|
|
|
*/
|
|
|
@Override
|
|
|
public IotDevicelasteddata selectDeviceLastedDataBydevBid(String devBid) {
|
|
|
- return this.redisCacheManager.getCacheObject(RedisCacheKey.SYS_RES, devBid);
|
|
|
+ return this.redisCacheManager.getCacheObject(RedisCacheKey.IOT_DEV_LASTED_DATA, devBid);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -79,7 +79,7 @@ public class IotDevicelasteddataServiceImpl implements IIotDevicelasteddataServi
|
|
|
|
|
|
//缓存起来
|
|
|
this.redisCacheManager.setCacheObject(
|
|
|
- RedisCacheKey.SYS_RES, iotDevicelasteddata.getDevBid(),
|
|
|
+ RedisCacheKey.IOT_DEV_LASTED_DATA, iotDevicelasteddata.getDevBid(),
|
|
|
iotDevicelasteddata
|
|
|
);
|
|
|
|