设备在线状态2

This commit is contained in:
2025-10-08 13:53:03 +08:00
parent cf883bfa00
commit 840c4fd68f

View File

@ -119,7 +119,7 @@ public class MqttMessageConsumer {
// }
UpdateWrapper<Device> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("device_imei", message)
.eq("online_status", 0)
.in("online_status", 0,2)
.set("online_status", 1);
int update = deviceMapper.update(updateWrapper);
// 模拟业务处理耗时