From 43f6b5dc4f53588631f601c517c1ec97edaee9a8 Mon Sep 17 00:00:00 2001 From: hucan <951870319@qq.com> Date: Mon, 18 Aug 2025 09:30:19 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E7=99=BE=E5=88=86=E6=AF=94=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=8F=96=E6=B6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/service/dto/line_reduce_strategy_item.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/service/dto/line_reduce_strategy_item.go b/app/admin/service/dto/line_reduce_strategy_item.go index 4e563cd..8b94a06 100644 --- a/app/admin/service/dto/line_reduce_strategy_item.go +++ b/app/admin/service/dto/line_reduce_strategy_item.go @@ -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") }