diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index d4799a5..c4787b3 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -304,8 +304,8 @@ func OrderCancel(c *gin.Context) { e.OutErr(c, 400, e.NewErr(400, "订单已经在制作,取消失败")) return } - all.WaitBakingNum -= v.Num - _, err := sess.Where("id=?", all.Id).Cols("wait_baking_num").Update(all) + all.WaitMakeNum -= v.Num + _, err := sess.Where("id=?", all.Id).Cols("wait_make_num").Update(all) if err != nil { sess.Rollback() e.OutErr(c, 400, e.NewErr(400, "订单取消失败")) @@ -656,8 +656,8 @@ func OrderEditNum(c *gin.Context) { e.OutErr(c, 400, e.NewErr(400, "订单已经在制作,取消失败")) return } - all.WaitBakingNum -= orderGoods.Num - _, err := sess.Where("id=?", all.Id).Cols("wait_baking_num").Update(all) + all.WaitMakeNum -= orderGoods.Num + _, err := sess.Where("id=?", all.Id).Cols("wait_make_num").Update(all) if err != nil { sess.Rollback() e.OutErr(c, 400, e.NewErr(400, "修改失败"))