liujie
5 天以前 67d06a785d5fc4524639ace27651c01ff05a4b58
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/util/EnergyRefreshService.java
@@ -44,7 +44,6 @@
            return;
        }
        //获取当前值
        BigDecimal currentValue = getCurrentValue();
        // 检查是否已停止或达到目标范围
@@ -52,7 +51,14 @@
            isRunning = false;
            return;
        }
        if(currentValue.doubleValue()==87){
            return;
        }
        if(currentValue.doubleValue()>87){
            updateCurrentValue(new BigDecimal("87"));
            return;
        }
        // 生成随机增量并更新值
        int increment = random.nextInt(maxIncrement + 1);