From f4cae4647f5439a3ca83b187e0bf7fd6a1ab313f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 20 九月 2022 10:04:48 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/protocol/SteProtocol.java |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/model/protocol/SteProtocol.java b/src/main/java/com/zy/core/model/protocol/SteProtocol.java
index 90f2103..3593f8e 100644
--- a/src/main/java/com/zy/core/model/protocol/SteProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/SteProtocol.java
@@ -36,7 +36,7 @@
     /**
      * 浠诲姟鍙�
      */
-    public Integer taskNo = 0;
+    public Short taskNo = 0;
 
     /**
      * 姝e湪鎵ц浠诲姟
@@ -217,12 +217,26 @@
      */
     private String lastIo = "I";
 
+    private String pakMk = "-";
 
     public BasSte toSqlModel(BasSte basSte){
         if (alarm!=null) {
             basSte.setSteErr(alarm.longValue());
         }
-        basSte.setWrkNo(taskNo);
+        basSte.setWrkNo(taskNo.intValue());
         return basSte;
     }
+
+    // 鏄惁澶勪簬绌洪棽寰呭懡鐘舵��
+    public Boolean isIdle() {
+        return this.statusType.equals(SteStatusType.IDLE)
+                && this.pakMk.equals("N")
+                && !isAlarm();
+    }
+
+    // 鏄惁澶勪簬鎶ヨ鐘舵��
+    public Boolean isAlarm() {
+        return this.alarm > 1;
+    }
+
 }

--
Gitblit v1.9.1