huangjiajun 2 months 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"`
IsNow string `json:"is_now"`
Timer string `json:"timer"`
TableNum string `json:"table_num"`
GoodsInfo []GoodsInfo `json:"goods_info"`
}
type GoodsInfo struct {


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

@@ -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


Loading…
Cancel
Save