From 2559fd781a2f627e8c769bae69bc0840f9f7bc3b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 21 九月 2022 10:47:06 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java |   21 +++++++++++++++++++++
 1 files changed, 21 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..41f0586 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,25 @@
         }
     }
 
+    /**
+     * 灏忚溅鐢甸噺妫�娴�
+     */
+    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