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()