From cc2beb17a0c5f8ede44ce3cdd98284b2e940651d Mon Sep 17 00:00:00 2001 From: chenlin Date: Tue, 20 May 2025 11:55:05 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=87=87=E8=B4=AD=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=85=A5=E5=BA=93/=E9=80=80=E8=B4=A7=E6=97=B6=E4=B8=B2?= =?UTF-8?q?=E7=A0=81=E5=88=A4=E6=96=AD=E4=BC=98=E5=8C=96=EF=BC=8C=E5=8F=AA?= =?UTF-8?q?=E6=9C=89=E5=85=A5=E5=BA=93=E8=AE=A2=E5=8D=95=E6=89=8D=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E4=BC=9A=E4=B8=B2=E7=A0=81=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/models/purchase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/models/purchase.go b/app/admin/models/purchase.go index 887a5a5..86f200c 100644 --- a/app/admin/models/purchase.go +++ b/app/admin/models/purchase.go @@ -1644,7 +1644,7 @@ func checkPurchaseInventory(req *ErpPurchaseInventoryReq, imeiCheckFlag bool) er } // 如果该商品是串码商品,判断其串码是否会重复 - if inventory.IMEI != "" { + if inventory.IMEI != "" && req.PurchaseType == ErpProcureOrder { exist, err := QueryRecordExist(fmt.Sprintf("SELECT * FROM erp_stock_commodity WHERE FIND_IN_SET('%s', imei) > 0", inventory.IMEI)) if err != nil { logger.Error("exist sn err")