#区域连续作业相关

This commit is contained in:
2026-11-03 16:06:58 +08:00
parent f25a0b5018
commit 99c7a3ab87
24 changed files with 480 additions and 41 deletions

View File

@@ -79,6 +79,9 @@ public class InitThread implements ApplicationRunner {
@Resource(name = FastBeeConstant.TASK.AUTO_RULE)
private Executor autoRuleExecutor;
@Resource(name = FastBeeConstant.TASK.REGION_CONSECUTIVE_TASK)
private Executor regionConsecutiveTasksExecutor;
@Resource(name = FastBeeConstant.TASK.COMMON_DEVICE_MONITOR)
private Executor commonDeviceMonitorExecutor;
@@ -182,6 +185,11 @@ public class InitThread implements ApplicationRunner {
GlobalMemory.initMqttDeviceMonitor(mqttHostUrl, mqttClientId, mqttUsername, mqttPassword);
// 区域连续任务处理线程
regionConsecutiveTasksExecutor.execute(() -> {
deviceThreadService.regionConsecutiveTaskHandler();
});
// 规则触发线程
autoRuleExecutor.execute(() -> {
deviceThreadService.autoRule();