From 612c087b44b1db2adf0bf4b9e60e85bc457a5483 Mon Sep 17 00:00:00 2001 From: chenlin Date: Thu, 24 Oct 2024 16:04:14 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E8=B0=83=E6=8B=A8=E6=97=B6=EF=BC=8C=E5=90=8C=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E8=B0=83=E6=8B=A8=E8=AE=A2=E5=8D=95=E6=B7=BB=E5=8A=A0=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E4=B8=8D=E5=90=8C=E9=87=87=E8=B4=AD=E4=BB=B7=E7=9A=84?= =?UTF-8?q?=E4=B8=B2=E7=A0=81=E5=95=86=E5=93=81=E5=AE=A1=E6=A0=B8=E5=90=8E?= =?UTF-8?q?=E9=87=87=E8=B4=AD=E4=BB=B7=E9=9A=8F=E6=9C=BA=E5=8F=98=E6=88=90?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E7=9A=84=E7=BC=BA=E9=99=B7=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/models/inventory_allot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/models/inventory_allot.go b/app/admin/models/inventory_allot.go index b343f36..1cd76ed 100644 --- a/app/admin/models/inventory_allot.go +++ b/app/admin/models/inventory_allot.go @@ -684,8 +684,8 @@ func allotAuditAndUpdateStock(gdb *gorm.DB, allotOrder ErpInventoryAllotOrder) e } // 更新库存调拨商品信息表的调拨金额 - err = gdb.Table("erp_inventory_allot_commodity").Where("allot_order_id = ? and commodity_id = ?", - v.AllotOrderId, v.CommodityId). + err = gdb.Table("erp_inventory_allot_commodity").Where("allot_order_id = ? and commodity_id = ? and "+ + "imei = ?", v.AllotOrderId, v.CommodityId, v.IMEI). Updates(map[string]interface{}{ "amount": nAmount, }).Error