From d4635affe30c094dc86f011fa8413de055aa3a2a Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期六, 02 十二月 2023 09:56:24 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
index 7fefcb4..2598f0f 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -2489,7 +2489,9 @@
                         RobotUtils.sendTask(staProtocol303.getWorkNo().toString(), wrkDetls.size(), "303");
                     }
                 }
-            }else if (staProtocol317.isAutoing() && staProtocol317.isLoading() && staProtocol317.getWorkNo() != 0) {
+            }
+
+            if (staProtocol317.isAutoing() && staProtocol317.isLoading() && staProtocol317.getWorkNo() != 0) {
                 //璋冨害鏈烘鑷�
                 //鏌ヨ鏄惁鏈夊伐浣滄。
                 WrkMast wrkMast = wrkMastMapper.selectByWorkNo(staProtocol317.getWorkNo().intValue());
@@ -3017,9 +3019,20 @@
                     continue;
                 }
 
-                if (shuttleProtocol.getVoltage() < 5630) {
-                    continue;//鐢靛帇涓嶅缁х画鍏呯數
+                //***************鍒ゆ柇鏄惁婊″厖鏍″噯***************
+                EntityWrapper<Config> wrapper1 = new EntityWrapper<>();
+                wrapper.eq("code", "shuttleMaxPowerVerify");
+                Config config1 = configService.selectOne(wrapper1);
+                if (config1 != null) {
+                    if (!Boolean.parseBoolean(config1.getValue())) {
+                        continue;//娌℃湁寮�鍚弧鍏呮牎鍑�
+                    }
+
+                    if (shuttleProtocol.getVoltage() < 5630) {
+                        continue;//鐢靛帇涓嶅缁х画鍏呯數
+                    }
                 }
+                //***************鍒ゆ柇鏄惁婊″厖鏍″噯***************
 
                 //灏忚溅婊$數锛岀粨鏉熷厖鐢典换鍔�
                 NyShuttleHttpCommand chargeCommand = NyHttpUtils.getChargeCommand(shuttle.getId(), wrkCharge.getWrkNo(), false);

--
Gitblit v1.9.1