ZY
2024-08-22 0c79b5072495ad34c3a408e4b5a9e39de4e1a741
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;
    }