forked from dyf/fys-Multi-tenant
发送信息和告警故障3
This commit is contained in:
@ -63,6 +63,12 @@ public class BjqModeRule implements MqttMessageRule {
|
|||||||
updateWrapper.set("online_status", 2);
|
updateWrapper.set("online_status", 2);
|
||||||
deviceService.update(updateWrapper);
|
deviceService.update(updateWrapper);
|
||||||
RedisUtils.deleteObject(sendMessageIng);
|
RedisUtils.deleteObject(sendMessageIng);
|
||||||
|
|
||||||
|
// 解除告警
|
||||||
|
String deviceRedisKey = GlobalConstants.GLOBAL_REDIS_KEY + DeviceRedisKeyConstants.DEVICE_KEY_PREFIX + context.getDeviceImei() + DEVICE_ALARM_KEY_PREFIX;
|
||||||
|
if(RedisUtils.getCacheObject(deviceRedisKey) != null){
|
||||||
|
RedisUtils.deleteObject(deviceRedisKey);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 发送设备状态和位置信息到Redis
|
// 发送设备状态和位置信息到Redis
|
||||||
|
|||||||
Reference in New Issue
Block a user