From f5c60d7b0eb30d07cf6d4160016d6f203975c869 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 3 Apr 2024 14:43:46 +0800 Subject: [PATCH] =?UTF-8?q?1.ipad=E7=AB=AF=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ipad/svc/svc_order_make.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/ipad/svc/svc_order_make.go b/app/ipad/svc/svc_order_make.go index 56731d8..9f109b9 100644 --- a/app/ipad/svc/svc_order_make.go +++ b/app/ipad/svc/svc_order_make.go @@ -159,13 +159,6 @@ func commMake(c *gin.Context, args map[string]string) { e.OutErr(c, 400, e.NewErr(400, "开始制作失败,请重试")) return } - orderGoods.State = state - update, err := sess.Where("id=?", orderGoods.Id).Cols("state").Update(orderGoods) - if update == 0 || err != nil { - sess.Rollback() - e.OutErr(c, 400, e.NewErr(400, "提交失败,请重试")) - return - } //判断大订单 要不要改状态 count, _ := sess.Where("oid=?", orderGoods.Oid).Count(&model.OrderGoods{}) countEnd, _ := sess.Where("oid=? and state=?", orderGoods.Oid, state).Count(&model.OrderGoods{})