From 7a1a67b71ef5f86c2fb629c1a10b04cf3cbbd2a4 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期三, 02 十一月 2022 09:14:14 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/model/protocol/SteProtocol.java | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 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 201d49d..42515cc 100644 --- a/src/main/java/com/zy/core/model/protocol/SteProtocol.java +++ b/src/main/java/com/zy/core/model/protocol/SteProtocol.java @@ -190,6 +190,12 @@ */ private Short chargeStatus; + // 鍏ュ簱鍙栫┖ + private Boolean inEmpty; + + // 鍑哄簱鍙栫┖ + private Boolean outEmpty; + public void setStatus(Short status){ this.status = status; this.statusType = SteStatusType.get(status); @@ -253,7 +259,9 @@ boolean res = this.statusType.equals(SteStatusType.IDLE) && this.pakMk.equals("N") && !isAlarm() - && this.chargeStatus == 0; + && this.chargeStatus == 0 + && isEnable() + ; if (!res) { return res; } else { @@ -273,4 +281,23 @@ return this.alarm > 1; } + public Boolean isEnable() { + if (Cools.isEmpty(row)) { + if (row == 0) { + return false; + } + } + if (Cools.isEmpty(bay)) { + if (bay == 0) { + return false; + } + } + if (Cools.isEmpty(lev)) { + if (lev == 0) { + return false; + } + } + return true; + } + } -- Gitblit v1.9.1