From 3920895dadb73afafb02c979d6db59e310877534 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期二, 25 三月 2025 08:19:14 +0800
Subject: [PATCH] 删除CommandUtils

---
 src/main/java/com/zy/asrs/controller/SiteController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/SiteController.java b/src/main/java/com/zy/asrs/controller/SiteController.java
index 741daa3..f224249 100644
--- a/src/main/java/com/zy/asrs/controller/SiteController.java
+++ b/src/main/java/com/zy/asrs/controller/SiteController.java
@@ -8,8 +8,8 @@
 import com.zy.asrs.domain.vo.SiteTableVo;
 import com.zy.asrs.entity.BasDevp;
 import com.zy.asrs.service.BasDevpService;
-import com.zy.asrs.utils.CommandUtils;
 import com.zy.core.DevpThread;
+import com.zy.core.cache.MessageQueue;
 import com.zy.core.cache.OutputQueue;
 import com.zy.core.cache.SlaveConnection;
 import com.zy.core.enums.SlaveType;
@@ -227,7 +227,7 @@
                         basDevp.setOutEnable(outEnable ? "Y" : "N");
                     }
                     basDevpService.updateById(basDevp);
-                    boolean result = CommandUtils.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol), false);
+                    boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(2, staProtocol));
                     if (result) {
                         return R.ok();
                     } else {
@@ -277,7 +277,7 @@
                     staProtocol.setWorkNo((short) 0);
                     staProtocol.setStaNo((short) 0);
                     basDevpService.updateById(basDevp);
-                    boolean result = CommandUtils.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol), false);
+                    boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol));
                     if (result) {
                         return R.ok();
                     } else {
@@ -318,7 +318,7 @@
                 }
                 staProtocol.setWorkNo((short) 9999);
                 staProtocol.setStaNo(inSta.getStaNo().shortValue());
-                boolean result = CommandUtils.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol), false);
+                boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol));
                 if (result) {
                     return R.ok();
                 } else {

--
Gitblit v1.9.1