From 3b64c807f60e5d6b71deca3f79c9be4be19abfaa Mon Sep 17 00:00:00 2001 From: Junjie <540245094@qq.com> Date: 星期五, 23 二月 2024 10:47:58 +0800 Subject: [PATCH] #显示器更新 --- src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java | 66 +++++++++++++++++++------------- 1 files changed, 39 insertions(+), 27 deletions(-) diff --git a/src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java b/src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java index 9278e36..9961293 100644 --- a/src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java +++ b/src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java @@ -244,6 +244,16 @@ */ private Integer yCurrent = 0; + /** + * 鎸囦护涓嬪彂鏃堕棿 + */ + private Long sendTime = 0L; + + /** + * 鏃ュ織閲囬泦鏃堕棿 + */ + private Long deviceDataLog = System.currentTimeMillis(); + //鎬婚噷绋嬫暟 @Data public static class StatusSumClass { @@ -484,21 +494,22 @@ && this.taskNo == 0 && this.protocolStatus == ShuttleProtocolStatusType.IDLE.id ; - if (!res) { - return res; - } else { - // 鐢甸噺 - try { - Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine(); - if (chargeLine == null) { - return false; - } - return this.getPowerPercent() >= chargeLine; - } catch (Exception e) { - News.error("fail", e); - return false; - } - } + return res; +// if (!res) { +// return res; +// } else { +// // 鐢甸噺 +// try { +// Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine(); +// if (chargeLine == null) { +// return false; +// } +// return this.getPowerPercent() >= chargeLine; +// } catch (Exception e) { +// News.error("fail", e); +// return false; +// } +// } } // 鏄惁澶勪簬绌洪棽寰呭懡鐘舵�侊紝浼犲叆鐨則askNo鍜屽綋鍓峵askNo鐩稿悓鏃跺厑璁告斁琛� @@ -509,18 +520,19 @@ && (this.taskNo == 0 || this.taskNo == taskNo) && this.protocolStatus.intValue() == ShuttleProtocolStatusType.IDLE.id ; - if (!res) { - return res; - } else { - // 鐢甸噺 - try { - Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine(); - return this.getPowerPercent() > chargeLine; - } catch (Exception e) { - News.error("fail", e); - return false; - } - } + return res; +// if (!res) { +// return res; +// } else { +// // 鐢甸噺 +// try { +// Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine(); +// return this.getPowerPercent() > chargeLine; +// } catch (Exception e) { +// News.error("fail", e); +// return false; +// } +// } } // 鏄惁澶勪簬绌洪棽寰呭懡鐘舵�� -- Gitblit v1.9.1