Junjie
2023-04-14 f57741a11f0cce1f7ac0f2c8ab0627c046cb855b
src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
@@ -289,10 +289,10 @@
        if (!res) {
            return res;
        } else {
            // 电量
            // 电量小于阈值或电压小于48V,需要进行充电
            try {
                Integer chargeLine = SpringUtils.getBean(BasShuttleService.class).selectById(this.shuttleNo).getChargeLine();
                return this.getBatteryPower$() < chargeLine;
                return this.getBatteryPower$() < chargeLine || this.currentVoltage < 480;
            } catch (Exception e) {
                News.error("fail", e);
                return false;