From 099a2aaf34aa6f00e1b0a9278d45ace3ef3e11e1 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 30 十一月 2022 14:42:52 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/protocol/SteProtocol.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 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 0b6a91a..ceeaeeb 100644
--- a/src/main/java/com/zy/core/model/protocol/SteProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/SteProtocol.java
@@ -70,6 +70,12 @@
      */
     public Float charge = 0.0F;
 
+    public void setCharge(Float charge) {
+        if (charge >= 0) {
+            this.charge = charge;
+        }
+    }
+
     /**
      * 婊$數
      */
@@ -190,6 +196,12 @@
      */
     private Short chargeStatus;
 
+    // 鍏ュ簱鍙栫┖
+    private Boolean inEmpty;
+
+    // 鍑哄簱鍙栫┖
+    private Boolean outEmpty;
+
     public void setStatus(Short status){
         this.status = status;
         this.statusType = SteStatusType.get(status);
@@ -251,6 +263,7 @@
     // 鏄惁澶勪簬绌洪棽寰呭懡鐘舵��
     public Boolean isIdle() {
         boolean res = this.statusType.equals(SteStatusType.IDLE)
+                && this.mode == 1
                 && this.pakMk.equals("N")
                 && !isAlarm()
                 && this.chargeStatus == 0

--
Gitblit v1.9.1