在线状态修改

This commit is contained in:
2025-09-13 15:37:48 +08:00
parent 8597dc5a9f
commit 41eb3d9a33
2 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ public class MqttMessageConsumer {
private ExecutorService messageProcessorPool = Executors.newFixedThreadPool(10);
// 初始化方法,启动消息监听
// @PostConstruct
@PostConstruct
public void start() {
log.info("启动MQTT消息消费者...");
// 启动消息获取线程
@ -100,7 +100,7 @@ public class MqttMessageConsumer {
.set("online_status", 1);
deviceMapper.update(updateWrapper);
// 模拟业务处理耗时
Thread.sleep(200);
// Thread.sleep(200);
log.info("业务处理线程 {} 完成消息处理: {}", threadName, message);
} catch (Exception e) {