From 7ecf4e724602a06011df48559c4d65fb230c839b Mon Sep 17 00:00:00 2001 From: chenfang Date: Fri, 22 Dec 2023 14:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=80=80=E8=B4=A7=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerreturnRequestMainServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/customerreturnRequest/CustomerreturnRequestMainServiceImpl.java b/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/customerreturnRequest/CustomerreturnRequestMainServiceImpl.java index 2c9b572e..ffae14f0 100644 --- a/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/customerreturnRequest/CustomerreturnRequestMainServiceImpl.java +++ b/win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/service/customerreturnRequest/CustomerreturnRequestMainServiceImpl.java @@ -786,10 +786,10 @@ public class CustomerreturnRequestMainServiceImpl implements CustomerreturnReque } private String isqty(BigDecimal qty1, BigDecimal qty2) { - if (qty1.compareTo(qty2) < 0) { + if (qty1.compareTo(qty2) != 1) { return "ture"; } else { - throw new UtilException("上架数量" + qty2 + "不能大于库存数量" + qty1); + throw new UtilException("退货数量" + qty1 + "不能大于库存数量" + qty2); } }