From 05f8bdf7e09849c1db885b6c996ad18280d130b3 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 18 十二月 2023 16:18:25 +0800
Subject: [PATCH] #map latest test
---
src/main/java/com/zy/core/model/protocol/LiftProtocol.java | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/zy/core/model/protocol/LiftProtocol.java b/src/main/java/com/zy/core/model/protocol/LiftProtocol.java
index f323bc4..ed9bd30 100644
--- a/src/main/java/com/zy/core/model/protocol/LiftProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/LiftProtocol.java
@@ -130,6 +130,11 @@
private LiftAssignCommand assignCommand;
/**
+ * 鎸囦护涓嬪彂鏃堕棿
+ */
+ private Long sendTime = 0L;
+
+ /**
* 璁剧疆鎻愬崌鏈虹姸鎬�
*/
public void setProtocolStatus(Integer status) {
@@ -147,20 +152,22 @@
// 鏄惁澶勪簬绌洪棽寰呭懡鐘舵��
public Boolean isIdle(Short taskNo) {
- if(this.taskNo == null
- || this.busy == null
+ if(this.busy == null
|| this.model == null
|| this.deviceError == null
|| this.pakMk == null
+ || this.token == null
){
return false;
}
- boolean res = (this.taskNo == 0 || this.taskNo.intValue() == taskNo.intValue())
- && !this.busy
+ boolean res =
+// (this.taskNo.equals(this.completeTaskNo) || this.taskNo.intValue() == taskNo.intValue())
+ !this.busy
&& this.model
&& !this.pakMk
&& !this.deviceError
+ && this.protocolStatusType.equals(LiftProtocolStatusType.IDLE)
;
return res;
}
@@ -177,12 +184,14 @@
return false;
}
- boolean res = this.taskNo == 0
- && !this.busy
+ boolean res =
+// this.taskNo.equals(this.completeTaskNo)
+ !this.busy
&& this.model
&& !this.pakMk
&& !this.deviceError
&& this.token == 0
+ && this.protocolStatusType.equals(LiftProtocolStatusType.IDLE)
;
return res;
}
--
Gitblit v1.9.1