From 291a20649ec1d38d7bace055139f023482bdec69 Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Thu, 21 May 2026 11:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A7=E5=88=B6task?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=89=A7=E8=A1=8C=E9=85=8D=E7=BD=AEbusiness:?= =?UTF-8?q?task-enabled:=20false=E4=B8=BAtrue=E6=98=AF=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=EF=BC=8Cfalse=E4=B8=8D=E6=89=A7=E8=A1=8C=EF=BC=8C=E7=BC=BA?= =?UTF-8?q?=E7=9C=81=E9=BB=98=E8=AE=A4=E4=B8=BAtrue=E5=8F=AA=E8=A1=8C?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E6=9C=89=E6=B2=A1=E6=9C=89=E5=89=8D=E7=BD=AE?= =?UTF-8?q?=E5=BE=AE=E6=9C=8D=E5=8A=A1=E7=89=88=E6=9C=AC=E9=85=8D=E7=BD=AE?= =?UTF-8?q?false=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/njcn/device/pq/job/DeviceComflagTasks.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/job/DeviceComflagTasks.java b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/job/DeviceComflagTasks.java index de47b019e..86a93aa60 100644 --- a/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/job/DeviceComflagTasks.java +++ b/pqs-device/pq-device/pq-device-boot/src/main/java/com/njcn/device/pq/job/DeviceComflagTasks.java @@ -14,6 +14,7 @@ import com.njcn.message.constant.RedisKeyPrefix; import com.njcn.redis.utils.RedisUtil; import lombok.RequiredArgsConstructor; import org.apache.commons.lang3.StringUtils; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @@ -35,6 +36,7 @@ import java.util.stream.Collectors; @Component @EnableScheduling @RequiredArgsConstructor +@ConditionalOnProperty(name = "business.task-enabled", havingValue = "true", matchIfMissing = true) public class DeviceComflagTasks { private final NodeMapper nodeMapper; private final IDeviceService iDeviceService;