From 6182cc11c3e93610df7fda87611d2ca807c6354c Mon Sep 17 00:00:00 2001
From: qlsxk <qlsxk@qq.com>
Date: 星期四, 16 十月 2025 14:28:30 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/model/protocol/LiftProtocol.java | 30 ++++++++++++++++++++----------
1 files changed, 20 insertions(+), 10 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 2c5ffd1..08041ee 100644
--- a/src/main/java/com/zy/core/model/protocol/LiftProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/LiftProtocol.java
@@ -39,12 +39,22 @@
/**
* 浠诲姟鐘舵��
*/
- private Integer protocolStatus = LiftProtocolStatusType.NONE.id;
+ private Integer protocolStatus = LiftProtocolStatusType.IDLE.id;
/**
* 浠诲姟鐘舵�佹灇涓�
*/
- private LiftProtocolStatusType protocolStatusType = LiftProtocolStatusType.NONE;
+ private LiftProtocolStatusType protocolStatusType = LiftProtocolStatusType.IDLE;
+
+ /**
+ * 璁惧鐘舵��
+ */
+ private Integer deviceStatus = LiftDeviceStatusType.NONE.id;
+
+ /**
+ * 璁惧鐘舵�佹灇涓�
+ */
+ private LiftDeviceStatusType deviceStatusType = LiftDeviceStatusType.NONE;
/**
* 浠诲姟妯″紡
@@ -190,14 +200,6 @@
return this.taskNo == null ? 0 : this.taskNo;
}
- public synchronized void setSyncTaskNo(Integer taskNo) {
- RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class);
- if (null != redisUtil) {
- redisUtil.set(RedisKeyType.LIFT_FLAG.key + this.liftNo, taskNo);
- this.taskNo = taskNo;
- }
- }
-
public String getModel$() {
if (this.model == null) {
return "";
@@ -222,6 +224,14 @@
return LiftProtocolStatusType.get(this.protocolStatus).desc;
}
+ public String getDeviceStatus$() {
+ if (this.deviceStatus == null) {
+ return "";
+ }
+
+ return LiftDeviceStatusType.get(this.deviceStatus).desc;
+ }
+
public String getTaskMode$() {
if (this.taskMode == null) {
return "";
--
Gitblit v1.9.1