From ad79ba405b2d1ac96423f88f4e8a76c584b9d38a Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期一, 09 二月 2026 15:57:06 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/task/NotifyScheduler.java | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/src/main/java/com/zy/asrs/task/NotifyScheduler.java b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
index 0b318c5..9bc36ed 100644
--- a/src/main/java/com/zy/asrs/task/NotifyScheduler.java
+++ b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
@@ -39,25 +39,35 @@
@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());
}
}
@Scheduled(cron = "0/3 * * * * ? ")
public synchronized void notifyTask(){
notifyMsg("task", 1);
+ }
+
+ @Scheduled(cron = "0/3 * * * * ? ")
+ public synchronized void notifyCrn(){
+ notifyMsg("crn", 1);
+ }
+
+ @Scheduled(cron = "0/3 * * * * ? ")
+ public synchronized void notifyDualCrn(){
+ notifyMsg("dualCrn", 1);
}
private synchronized void notifyMsg(String notifyType, Integer device) {
@@ -97,6 +107,8 @@
continue;
}
NotifyDto notifyDto = (NotifyDto) object;
+ int id =notifyDto.getId().intValue();
+ notifyDto.setId((Long.valueOf(id)));
if (System.currentTimeMillis() - notifyDto.getLastRetryTime() < 1000 * notifyDto.getRetryTime()) {
continue;
--
Gitblit v1.9.1