From d4f1965d2dd5c1add73778f42e18d6153890858c Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期一, 19 六月 2023 15:54:32 +0800
Subject: [PATCH] log

---
 src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java b/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
index e736217..d56f972 100644
--- a/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
@@ -84,7 +84,7 @@
     /**
      * 鐢垫睜娓╁害
      */
-    private Short batteryTemp;
+    private Integer batteryTemp;
 
     /**
      * 閿欒缂栧彿
@@ -149,7 +149,7 @@
     /**
      * 褰撳墠鐨勭數鍘嬪��
      */
-    private Short currentVoltage;
+    private Integer currentVoltage;
 
     /**
      * 褰撳墠鐨勬ā鎷熼噺鍊�
@@ -246,6 +246,9 @@
             // 鐢甸噺
             try {
                 Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine();
+                if (chargeLine == null) {
+                    return false;
+                }
                 return this.getBatteryPower$() > chargeLine;
             } catch (Exception e) {
                 News.error("fail", e);

--
Gitblit v1.9.1