1、百分比限制取消

This commit is contained in:
2025-08-18 09:30:19 +08:00
parent a9fc1c87f5
commit 43f6b5dc4f

View File

@ -51,7 +51,7 @@ func (s *LineReduceStrategyItem) Valid() error {
return errors.New("百分比不能小于等于0")
}
if s.QuantityPercent.Cmp(decimal.NewFromInt(100)) >= 0 {
if s.QuantityPercent.Cmp(decimal.NewFromInt(100)) > 0 {
return errors.New("数量百分比不能大于等于100")
}