离线状态变更3
This commit is contained in:
@ -330,10 +330,10 @@ public class DeviceXinghanBizService {
|
|||||||
AppLoginHelper.getUserId());
|
AppLoginHelper.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isDeviceOffline(String imei) {
|
// private boolean isDeviceOffline(String imei) {
|
||||||
// 原方法名语义相反,这里取反,使含义更清晰
|
// // 原方法名语义相反,这里取反,使含义更清晰
|
||||||
return getDeviceStatus(imei);
|
// return getDeviceStatus(imei);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 记录设备操作日志
|
* 记录设备操作日志
|
||||||
@ -359,7 +359,7 @@ public class DeviceXinghanBizService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean getDeviceStatus(String deviceImei) {
|
private boolean isDeviceOffline(String deviceImei) {
|
||||||
String deviceOnlineStatusRedisKey = GlobalConstants.GLOBAL_REDIS_KEY+ DEVICE_KEY_PREFIX+ deviceImei + DeviceRedisKeyConstants.DEVICE_ONLINE_STATUS_KEY_PREFIX ;
|
String deviceOnlineStatusRedisKey = GlobalConstants.GLOBAL_REDIS_KEY+ DEVICE_KEY_PREFIX+ deviceImei + DeviceRedisKeyConstants.DEVICE_ONLINE_STATUS_KEY_PREFIX ;
|
||||||
return RedisUtils.getCacheObject(deviceOnlineStatusRedisKey)==null;
|
return RedisUtils.getCacheObject(deviceOnlineStatusRedisKey)==null;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user