From 3940e8a7a3dae44cb9b795f71dfffb2e7a762775 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 13 Jun 2024 15:19:00 +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 deletions(-) diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index 8c346af..dab631c 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -1637,19 +1637,6 @@ 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()