From 82c36e2b434fa7a1c16b0448aa4cf1483107f79c Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期二, 02 十二月 2025 16:28:20 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/task/NotifyScheduler.java |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/NotifyScheduler.java b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
index eb022e4..271b624 100644
--- a/src/main/java/com/zy/asrs/task/NotifyScheduler.java
+++ b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
@@ -12,9 +12,6 @@
 import com.zy.common.utils.HttpHandler;
 import com.zy.common.utils.RedisUtil;
 import com.zy.core.enums.SlaveType;
-import com.zy.core.model.ForkLiftSlave;
-import com.zy.core.model.ShuttleSlave;
-import com.zy.core.properties.SlaveProperties;
 import com.zy.system.entity.Config;
 import com.zy.system.service.ConfigService;
 import lombok.extern.slf4j.Slf4j;
@@ -42,19 +39,19 @@
 
     @Scheduled(cron = "0/3 * * * * ? ")
     public synchronized void notifyShuttle(){
-        List<DeviceConfig> shuttleList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>()
-                .eq("device_type", String.valueOf(SlaveType.Shuttle)));
-        for (DeviceConfig device : shuttleList) {
-            notifyMsg(String.valueOf(SlaveType.Shuttle), device.getDeviceNo());
+        List<DeviceConfig> deviceList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>()
+                .eq("device_type", String.valueOf(SlaveType.Crn)));
+        for (DeviceConfig device : deviceList) {
+            notifyMsg(String.valueOf(SlaveType.Crn), device.getDeviceNo());
         }
     }
 
     @Scheduled(cron = "0/3 * * * * ? ")
     public synchronized void notifyForkLift(){
-        List<DeviceConfig> forkLiftList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>()
-                .eq("device_type", String.valueOf(SlaveType.ForkLift)));
-        for (DeviceConfig device : forkLiftList) {
-            notifyMsg(String.valueOf(SlaveType.ForkLift), device.getDeviceNo());
+        List<DeviceConfig> deviceList = deviceConfigService.selectList(new EntityWrapper<DeviceConfig>()
+                .eq("device_type", String.valueOf(SlaveType.Rgv)));
+        for (DeviceConfig device : deviceList) {
+            notifyMsg(String.valueOf(SlaveType.Rgv), device.getDeviceNo());
         }
     }
 

--
Gitblit v1.9.1