From b49345c85dfad9d73c6b88b54679ad5de9dbfe3c Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期日, 24 十一月 2024 09:43:44 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/protocol/JarProtocol.java |    3 +++
 src/main/java/com/zy/core/enums/JarStatusType.java        |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/core/enums/JarStatusType.java b/src/main/java/com/zy/core/enums/JarStatusType.java
index 5a12de0..030ad93 100644
--- a/src/main/java/com/zy/core/enums/JarStatusType.java
+++ b/src/main/java/com/zy/core/enums/JarStatusType.java
@@ -4,7 +4,7 @@
 
     IDLE(0, "绌洪棽"),
     MOVING(1, "寮�闂�"),
-    SOS(2, "鍏抽棬"),
+    SOS(2, "鍏呭帇涓�"),
     WAITING1(3, "寮�闂�"),
     WAITING2(4, "纭寲瀹屾垚"),
     WAITING3(5, "闂ㄦ墦寮�涓�"),
diff --git a/src/main/java/com/zy/core/model/protocol/JarProtocol.java b/src/main/java/com/zy/core/model/protocol/JarProtocol.java
index 29b50cf..93bc569 100644
--- a/src/main/java/com/zy/core/model/protocol/JarProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/JarProtocol.java
@@ -162,12 +162,15 @@
         basJar.setJarPressure(jarPressure);
         if (holdingSign){
             basJar.setHoldingTime(new Date());
+            holdingSign = false;
         }
         if (openDoorSign){
             basJar.setOpenTime(new Date());
+            openDoorSign = false;
         }
         if (closeDoorSign){
             basJar.setCloseTime(new Date());
+            closeDoorSign = false;
         }
 
         return basJar;

--
Gitblit v1.9.1