From 1fa6f78621d6224709971b964c43197914c17f04 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 12 Oct 2024 16:38:58 +0800 Subject: [PATCH] 1 --- app/md/md_order.go | 1 + app/svc/svc_order.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/md/md_order.go b/app/md/md_order.go index 86beb45..f9ad273 100644 --- a/app/md/md_order.go +++ b/app/md/md_order.go @@ -8,6 +8,7 @@ type OrderTotal struct { CouponId string `json:"coupon_id"` IsNow string `json:"is_now"` Timer string `json:"timer"` + TableNum string `json:"table_num"` GoodsInfo []GoodsInfo `json:"goods_info"` } type GoodsInfo struct { diff --git a/app/svc/svc_order.go b/app/svc/svc_order.go index 735f5ca..2c599b1 100644 --- a/app/svc/svc_order.go +++ b/app/svc/svc_order.go @@ -89,6 +89,7 @@ func OrderList(c *gin.Context) { "store_name": storeName, "goods_info": goodsInfo, "amount": v.Amount, + "table_num": v.TableNum, "num": utils.IntToStr(v.Num), "timer": "", "code": v.Code, @@ -202,6 +203,7 @@ func OrderDetail(c *gin.Context) { "km": km, "amount": data.Amount, "num": utils.IntToStr(data.Num), + "table_num": data.TableNum, "timer": "", "code": data.Code, "down_time": downTime, @@ -622,6 +624,7 @@ func OrderCreate(c *gin.Context) { Oid: utils.StrToInt64(ordId), Amount: totalPrice, MealNum: utils.StrToInt(arg.MealNum), + TableNum: arg.TableNum, } if store.ParentUid > 0 { //代理下门店 order.StoreType = 2