点餐收银端

石化点餐项目


堂食订单

[TOC]

简要描述
  • 堂食订单接口
请求URL
  • https://food.taihuyun.vip/api/foodcash.order/tangOrdersList?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5&status=10
请求方式
  • GET
参数
参数名 必选 类型 说明
applet_id string 应用程序ID
shop_id string 门店ID
token string 用户身份验证的令牌
key_words string Tues 关键词:姓名、电话
create_begin string 就餐日期 范围开始
create_end string 就餐日期 范围结束
user_type string 用户类型; 1.石化职工;2.友好单位;3.散客;多选时使用逗号连接
meal int 餐段: 1.早餐;2.午餐;3.晚餐;4.夜宵
status int 支付状态 10.待结账;20.未结账
返回示例
{
  "code": 1,
  "msg": "success",
  "data": {
    "total": 17,
    "per_page": 10,
    "current_page": 1,
    "last_page": 2,
    "data": [
      {
        "order_id": 870,
        "order_no": "2022120751559810",
        "pay_price": "48.00",
        "pay_status": {
          "text": "后付款",
          "value": 30
        },
        "user_id": 6,
        "shop_id": 1,
        "applet_id": 1,
        "butie": 6,
        "meal_id": 0,
        "create_time": "2022-12-07 10:52:19",
        "update_time": "2022-12-13 17:04:22",
        "user": {
          "user_id": 6,
          "user_type": 1,
          "nickname": "老张",
          "gender": "未知",
          "country": "",
          "province": "",
          "city": "",
          "phone": "18742045357",
          "pay": "0.00",
          "score": 0,
          "converted": 0,
          "v": 1,
          "birthday": "",
          "identity": {
            "text": "燃除车间",
            "value": 60,
            "company_text": "燃除车间",
            "company_value": 60
          },
          "details": {},
          "usable": 0
        }
      },
      {
        "order_id": 862,
        "order_no": "2022120654995098",
        "pay_price": "6.00",
        "pay_status": {
          "text": "后付款",
          "value": 30
        },
        "user_id": 25,
        "shop_id": 1,
        "applet_id": 1,
        "butie": 0,
        "meal_id": 3,
        "create_time": "2022-12-06 17:35:50",
        "update_time": "2022-12-14 13:18:07",
        "user": {
          "user_id": 25,
          "user_type": 1,
          "nickname": "九爪鱼SOSO",
          "gender": "未知",
          "country": "",
          "province": "",
          "city": "",
          "phone": "15214801639",
          "pay": "0.00",
          "score": 0,
          "converted": 0,
          "v": 1,
          "birthday": "",
          "identity": {
            "text": "炼油厂",
            "value": 1,
            "company_text": "炼油厂",
            "company_value": 1
          },
          "details": {},
          "usable": 0
        }
      }
    ]
  }
}
返回参数说明
  • 返回状态代码: 200
参数名 类型 说明
data.order_no string 订单编号
data.pay_price string 支付金额
data.pay_stauts.value int 付款类型,10:待付款;20:已付款;30:后付款
data.pay_stauts.text string 付款类型
data.butie int 补贴
data.meal_id int 餐段,1早餐;2午餐;3晚餐;4夜宵
data.create_time string 创建时间
data.user.user_name string 用户
data.user.user_type int 用户类型;  1.石化职工;2.友好单位;3.散客
data.user.phone string 用户手机号
total int 总页数
per_page int 一页有几条
current_page int 当前页码
备注
  • 更多返回错误代码请看基本参数中的参数说明

页面列表

ITEM_HTML