huangjiajun 1 month ago
parent
commit
1fa6f78621
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      app/md/md_order.go
  2. +3
    -0
      app/svc/svc_order.go

+ 1
- 0
app/md/md_order.go View File

@@ -8,6 +8,7 @@ type OrderTotal struct {
CouponId string `json:"coupon_id"` CouponId string `json:"coupon_id"`
IsNow string `json:"is_now"` IsNow string `json:"is_now"`
Timer string `json:"timer"` Timer string `json:"timer"`
TableNum string `json:"table_num"`
GoodsInfo []GoodsInfo `json:"goods_info"` GoodsInfo []GoodsInfo `json:"goods_info"`
} }
type GoodsInfo struct { type GoodsInfo struct {


+ 3
- 0
app/svc/svc_order.go View File

@@ -89,6 +89,7 @@ func OrderList(c *gin.Context) {
"store_name": storeName, "store_name": storeName,
"goods_info": goodsInfo, "goods_info": goodsInfo,
"amount": v.Amount, "amount": v.Amount,
"table_num": v.TableNum,
"num": utils.IntToStr(v.Num), "num": utils.IntToStr(v.Num),
"timer": "", "timer": "",
"code": v.Code, "code": v.Code,
@@ -202,6 +203,7 @@ func OrderDetail(c *gin.Context) {
"km": km, "km": km,
"amount": data.Amount, "amount": data.Amount,
"num": utils.IntToStr(data.Num), "num": utils.IntToStr(data.Num),
"table_num": data.TableNum,
"timer": "", "timer": "",
"code": data.Code, "code": data.Code,
"down_time": downTime, "down_time": downTime,
@@ -622,6 +624,7 @@ func OrderCreate(c *gin.Context) {
Oid: utils.StrToInt64(ordId), Oid: utils.StrToInt64(ordId),
Amount: totalPrice, Amount: totalPrice,
MealNum: utils.StrToInt(arg.MealNum), MealNum: utils.StrToInt(arg.MealNum),
TableNum: arg.TableNum,
} }
if store.ParentUid > 0 { //代理下门店 if store.ParentUid > 0 { //代理下门店
order.StoreType = 2 order.StoreType = 2


Loading…
Cancel
Save