From af6fed7d45038a8696ecaa41e8b9a509df68e63e Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期一, 04 十二月 2023 13:37:11 +0800
Subject: [PATCH] #redis 同步set

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   17 ++++++++++++++---
 1 files changed, 14 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..40645e0 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,18 @@
                     continue;
                 }
 
-                if (shuttleProtocol.getVoltage() < 5630) {
-                    continue;//鐢靛帇涓嶅缁х画鍏呯數
+                //***************鍒ゆ柇鏄惁婊″厖鏍″噯***************
+                EntityWrapper<Config> wrapper1 = new EntityWrapper<>();
+                wrapper.eq("code", "shuttleMaxPowerVerify");
+                Config config1 = configService.selectOne(wrapper1);
+                if (config1 != null) {
+                    if (config1.getValue().equals("true")) {
+                        if (shuttleProtocol.getVoltage() < 5630) {
+                            continue;//鐢靛帇涓嶅缁х画鍏呯數
+                        }
+                    }
                 }
+                //***************鍒ゆ柇鏄惁婊″厖鏍″噯***************
 
                 //灏忚溅婊$數锛岀粨鏉熷厖鐢典换鍔�
                 NyShuttleHttpCommand chargeCommand = NyHttpUtils.getChargeCommand(shuttle.getId(), wrkCharge.getWrkNo(), false);

--
Gitblit v1.9.1