From 83449fef571c247a2d73194b8063638349d0076a Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期一, 20 十一月 2023 10:04:52 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java | 56 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 29 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..a181ee3 100644 --- a/src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java +++ b/src/main/java/com/zy/core/model/protocol/NyShuttleProtocol.java @@ -484,21 +484,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 +510,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