From adfa9e125d1ae0f73e8d00031c10df26248b3675 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 5 Jul 2024 11:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/svc/order/svc_order_list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index 8ec42fc..f6c40da 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -798,9 +798,9 @@ func OrderUpdateState(c *gin.Context) { flow := make([]model.OrderGoodsMakeStock, 0) sess4 := sess - sess4.Where("sku_id=? and goods_id=? and make_date=?", v.SkuId, v.GoodsId, v.MakeDate).Find(&flow) + sess4.Where("sku_id=? and gid=? and make_date=?", v.SkuId, v.GoodsId, v.MakeDate).Find(&flow) for _, v1 := range flow { - v1.SuccessNum = v1.WaitSortingNum + v1.SuccessNum += v1.WaitSortingNum v1.WaitSortingNum = 0 sess5 := sess _, err = sess5.Where("id=?", v1.Id).Cols("success_num,wait_sorting_num").Update(&v1)