From 29d5f847ca4d1f084d8170d5bf2235cd6b7dde14 Mon Sep 17 00:00:00 2001
From: zzgtfwq <zzgtfwq>
Date: 星期一, 08 十二月 2025 14:58:53 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/protocol/TaskProtocol.java |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/core/model/protocol/TaskProtocol.java b/src/main/java/com/zy/core/model/protocol/TaskProtocol.java
index a7dee2d..6acfc18 100644
--- a/src/main/java/com/zy/core/model/protocol/TaskProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/TaskProtocol.java
@@ -11,11 +11,12 @@
     private volatile Long taskNo; // 浠诲姟鍙凤紙涓诲睘鎬э級
     private volatile Long targetPosition = 0L; // 鐩爣浣嶇疆
     private volatile Integer targetPositionStaNo = 0; // 鐩爣浣嶇疆
+    private volatile Integer targetPositionStaNoEnd = 0; // 鏈�缁堢洰鏍囦綅缃�
     private volatile Integer targetPositionStaNoPlcId = 1; // 鐩爣浣嶇疆
 
     private volatile int isRunning = 0; // 杩愯鐘舵��  0锛氬垵濮�  1锛氱瓑寰呮墽琛�  2锛氭墽琛屼腑 3锛氭墽琛屼腑鏂� 4锛氬畬缁�
 
-    private volatile int taskStatus = 0; //浣滀笟妯″紡  1锛氳璧�  2锛氬彇  3锛氭斁  0:鏃�
+    private volatile int taskStatus = 0; //浣滀笟妯″紡  1锛氳璧�  2锛氬彇  3锛氭斁  0:鏃�  //zzgt 1:鍙�  2:鏀�  3:搴撲綅杞Щ 4:琛岃蛋
 
     private volatile boolean direction; // 鎵ц鏂瑰悜锛堥潰鏈濊建閬� 瀹氫綅鍊煎乏灏忓彸澶э級  true:宸�   false:鍙�  鎵ц鏂瑰悜锛堥潰鏈濊建閬�  1:鑷繁  2 杞ㄩ亾   true:鑷繁   false:杞ㄩ亾
 
@@ -58,4 +59,16 @@
         }
         return taskNo+"_"+taskStatusStr;
     }
+
+    public int getTaskStatus$() {
+        switch (taskStatus){
+            case 1:
+                return 4;
+            case 2:
+                return 1;
+            case 3:
+                return 2;
+        }
+        return taskStatus;
+    }
 }

--
Gitblit v1.9.1