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); } } } }