From 9d24c64b9d81ae166f4c150f038793304d7161fa Mon Sep 17 00:00:00 2001
From: Junjie <DELL@qq.com>
Date: 星期五, 19 十二月 2025 11:13:46 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/network/real/ZyStationRealConnect.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/core/network/real/ZyStationRealConnect.java b/src/main/java/com/zy/core/network/real/ZyStationRealConnect.java
index 0399061..9ee5f02 100644
--- a/src/main/java/com/zy/core/network/real/ZyStationRealConnect.java
+++ b/src/main/java/com/zy/core/network/real/ZyStationRealConnect.java
@@ -4,6 +4,7 @@
 import HslCommunication.Core.Types.OperateResultExOne;
 import HslCommunication.Profinet.Siemens.SiemensPLCS;
 import HslCommunication.Profinet.Siemens.SiemensS7Net;
+import com.zy.common.utils.RedisUtil;
 import lombok.extern.slf4j.Slf4j;
 
 import com.alibaba.fastjson.JSON;
@@ -36,9 +37,11 @@
     private List<ZyStationStatusEntity> barcodeStatusList;
     private SiemensS7Net siemensNet;
     private DeviceConfig deviceConfig;
+    private RedisUtil redisUtil;
 
-    public ZyStationRealConnect(DeviceConfig deviceConfig) {
+    public ZyStationRealConnect(DeviceConfig deviceConfig, RedisUtil redisUtil) {
         this.deviceConfig = deviceConfig;
+        this.redisUtil = redisUtil;
     }
 
     @Override
@@ -70,7 +73,7 @@
     }
 
     @Override
-    public List<ZyStationStatusEntity> getStatus() {
+    public List<ZyStationStatusEntity> getStatus(Integer deviceNo) {
         if (statusList == null) {
             BasDevpService basDevpService = SpringUtils.getBean(BasDevpService.class);
             if (basDevpService == null) {
@@ -129,7 +132,7 @@
     }
 
     @Override
-    public CommandResponse sendCommand(StationCommand command) {
+    public CommandResponse sendCommand(Integer deviceNo, StationCommand command) {
         CommandResponse commandResponse = new CommandResponse(false);
         if (null == command) {
             commandResponse.setMessage("鍛戒护涓虹┖");
@@ -201,4 +204,4 @@
         }
         return -1;
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1