From e0276af68793e2e7d999f8cf31727ae0657fc84e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期四, 15 九月 2022 15:32:44 +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..0b053fc 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 > 0; + } + } -- Gitblit v1.9.1