From f8064c392c3002f0e16e3a9fdb86824a797ea3bf Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 14 May 2024 18:15:37 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8B=E5=8D=95=E8=A7=84=E5=88=99=E6=9B=B4?= =?UTF-8?q?=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 4359851..0a134aa 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -713,7 +713,7 @@ func OrderEditNum(c *gin.Context) { order.Amount = utils.Float64ToStr(utils.StrToFloat64(order.Amount) + utils.StrToFloat64(args["num"])*utils.StrToFloat64(orderGoodsSku.Price)) } orderGoodsSku.DeductMemo = args["memo"] - _, err = sess.Where("id=?", orderGoodsSku.Id).Cols("num,memo,old_num,price").Update(orderGoodsSku) + _, err = sess.Where("id=?", orderGoodsSku.Id).Cols("num,memo,deduct_memo,old_num,price").Update(orderGoodsSku) if err != nil { sess.Rollback() e.OutErr(c, 400, e.NewErr(400, "修改失败")) @@ -786,7 +786,7 @@ func OrderEditNum(c *gin.Context) { orderGoods.OldNum = orderGoods.Num orderGoods.Num = utils.StrToInt(args["num"]) orderGoods.DeductMemo = args["memo"] - _, err = sess.Where("id=?", orderGoods.Id).Cols("num,sku_code,sku_id,sku,memo,old_num,price").Update(orderGoods) + _, err = sess.Where("id=?", orderGoods.Id).Cols("num,sku_code,sku_id,sku,memo,deduct_memo,old_num,price").Update(orderGoods) if err != nil { sess.Rollback() e.OutErr(c, 400, e.NewErr(400, "修改失败"))