From baca47c8252a84685cb79787272ff614a4e44cac Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 21 九月 2022 13:42:21 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 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 b5895a4..2b5acf0 100644
--- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java
@@ -1942,4 +1942,23 @@
         }
     }
 
+    /**
+     * 灏忚溅鐢甸噺妫�娴� ===>> 鍙戣捣鍏呯數
+     */
+    public void loopSteCharge() {
+        for (SteSlave ste : slaveProperties.getSte()) {
+            SteThread steThread = (SteThread) SlaveConnection.get(SlaveType.Ste, ste.getId());
+            SteProtocol steProtocol = steThread.getSteProtocol();
+            BasSte basSte = basSteService.selectById(ste.getId());
+            if (Cools.isEmpty(steProtocol, basSte)) { continue; }
+            try {
+                if (steProtocol.getCharge() > Float.parseFloat(basSte.getChargeLine())) {
+                    continue;
+                }
+            } catch (Exception e) {
+                log.error("fail", e);
+            }
+        }
+    }
+
 }

--
Gitblit v1.9.1