From adf8208fa0ba8a6783d6845d5a9681b24b1a1dd6 Mon Sep 17 00:00:00 2001 From: HuangHuiKang Date: Fri, 26 Jun 2026 10:57:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E7=89=A9=E6=96=99?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=95=E4=BD=8D=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/erp/service/product/ErpProductServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductServiceImpl.java b/yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductServiceImpl.java index 257974ff4..75a8d556a 100644 --- a/yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductServiceImpl.java +++ b/yudao-module-erp/yudao-module-erp-biz/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductServiceImpl.java @@ -361,9 +361,9 @@ public class ErpProductServiceImpl implements ErpProductService { if (productUnitService.getProductUnit(purchaseUnitId) == null) { throw exception(PRODUCT_UNIT_NOT_EXISTS); } - if (unitId.equals(purchaseUnitId)) { - throw exception(PRODUCT_UNIT_CONVERT_SELF_NOT_ALLOWED); - } +// if (unitId.equals(purchaseUnitId)) { +// throw exception(PRODUCT_UNIT_CONVERT_SELF_NOT_ALLOWED); +// } if (purchaseUnitConvertQuantity == null || purchaseUnitConvertQuantity.compareTo(BigDecimal.ZERO) <= 0) { throw exception(PRODUCT_PURCHASE_UNIT_CONVERT_QUANTITY_INVALID); }