From 28df41094f7c20594eeacfaa2257302a43e28289 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 13 Jun 2024 15:12:56 +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 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index dab631c..8c346af 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -1637,6 +1637,19 @@ func OrderDeductNum(c *gin.Context) { } newNum -= deNum all1.WaitBakingNum -= deNum + all := all1 + all.Id = 0 + all.WaitBakingNum = deNum + all.WaitMakeNum = 0 + all.WaitSortingNum = 0 + all.GoodsTitle = orderGoods1.GoodsTitle + all.GoodsType = 2 + _, err = sess.InsertOne(all) + if err != nil { + sess.Rollback() + e.OutErr(c, 400, e.NewErr(400, "修改失败")) + return + } } if newNum > 0 { sess.Rollback()