#
Junjie
2025-02-14 ac4341ea6b66ae02427d39d35f41d42d78b2eb2e
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/CircleRuleServiceImpl.java
@@ -26,13 +26,11 @@
        Integer currentValue = circleRule.getCurrentValue();
        Integer startValue = circleRule.getStartValue();
        Integer targetValue = circleRule.getTargetValue();
        if (currentValue > targetValue) {
            currentValue = startValue;
        }else {
            currentValue += 1;
        }
        circleRule.setCurrentValue(currentValue);
        circleRule.setCurrentValue(currentValue + 1);
        if (circleRule.getCurrentValue() > targetValue) {
            circleRule.setCurrentValue(startValue);
        }
        this.updateById(circleRule);
        return currentValue;
    }