From dda84971088b3e4567dd28588c7965ef430fea2f Mon Sep 17 00:00:00 2001 From: rui_li <877258667@qq.com> Date: Thu, 11 Aug 2022 14:32:34 +0800 Subject: [PATCH] =?UTF-8?q?2022-08-11=20=E7=BB=93=E6=9D=9F=E5=8D=B7?= =?UTF-8?q?=E4=B8=8D=E5=9C=A8=E9=99=90=E5=88=B6=E6=9D=90=E6=96=99=E7=9A=84?= =?UTF-8?q?=E8=80=97=E7=94=A8=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/schedule/service/impl/ScheduleServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java b/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java index 4eb7268..a99d4fe 100644 --- a/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java +++ b/src/main/java/com/gaotao/modules/schedule/service/impl/ScheduleServiceImpl.java @@ -2044,8 +2044,8 @@ public class ScheduleServiceImpl implements ScheduleService { if (netIssueQty == null) { throw new XJException("材料上本卷耗用数量不能为空!"); } - if (netIssueQty <= 0) { - throw new XJException("材料上本卷耗用数量必须大于0!"); + if (netIssueQty < 0) { + throw new XJException("材料上本卷耗用数量必须大于等于0!"); } if (netIssueQty > transQty) { throw new XJException("材料上本卷耗用数量大于发料数量!");