From a77530a0e917f8d2dca1bae55a3730471c8e10a2 Mon Sep 17 00:00:00 2001
From: cpT <1@123>
Date: 星期三, 02 七月 2025 09:22:32 +0800
Subject: [PATCH] #改造

---
 src/main/java/com/zy/core/thread/SiemensDevpThread.java |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/SiemensDevpThread.java b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
index 721db2b..d56487d 100644
--- a/src/main/java/com/zy/core/thread/SiemensDevpThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensDevpThread.java
@@ -321,6 +321,14 @@
                 if (!staProtocol.isPakMk() && !staProtocol.isLoading()) {
                     staProtocol.setPakMk(true);
                 }
+
+                if (!staProtocol.isPakMkRun() && !staProtocol.isLoading()) {
+                    staProtocol.setPakMkRun(true);
+                }
+
+                if (!staProtocol.isPakMkTask() && !staProtocol.isLoading()) {
+                    staProtocol.setPakMkTask(true);
+                }
             }
         }
         int[] staW = new int[]{1004,1014,1020};
@@ -342,6 +350,8 @@
                     barcodeThread.setBarcode(barcode);
                     if (!Cools.isEmpty(barcode) && !barcode.equals("000000")){
                         staProtocol.setBarcodeNow(barcode);
+                    } else if (Cools.isEmpty(barcode)){
+                        staProtocol.setBarcodeNow("-");
                     }
                 }
 
@@ -614,6 +624,29 @@
         }
     }
 
+
+    /**
+     * 璁剧疆鍏ュ簱鏍囪
+     */
+    @Override
+    public void setPakMkTask(Integer siteId, boolean pakMk) {
+        StaProtocol staProtocol = station.get(siteId);
+        if (null != staProtocol) {
+            staProtocol.setPakMkTask(pakMk);
+        }
+    }
+
+
+    /**
+     * 璁剧疆鍏ュ簱鏍囪
+     */
+    @Override
+    public void setPakMkRun(Integer siteId, boolean pakMk) {
+        StaProtocol staProtocol = station.get(siteId);
+        if (null != staProtocol) {
+            staProtocol.setPakMkRun(pakMk);
+        }
+    }
     /**
      * 璁剧疆鍏ュ簱鏍囪
      */

--
Gitblit v1.9.1