Skip to content

订单查询优化接口

订单查询优化接口

/order_id/list_new 订单id查询接口

Method: POST
Class:  OrderIdListNewView
请求:
    ids list    订单id
    cols    list    需要的订单主表字段
    detail_cols     list    需要的订单详情表字段
    supply_chain_cols   list    需要的订单上下游字段
    serial_cols list    需要的订单序列号字段


响应:
    code M int 0为成功,其它为失败
    msg M string 错误提示信息
    data M str 返回的订单ID
    eg: {  
      "msg": "ok",
      "code": 0,
      "data": [
        'order_id': 'PL00001',
        'station_id': 'T00001',
        'serial': ['11111', '22222'],
        'details': [{
          'sku_id': 'D1111',
        },]
        'supply_chain_info': {
          'D1111': [
            {
              'up_order_id': 'PL0001'
              'up_sku_id': 'D111',
              'has_weighted': 1,
              'out_of_stock': 0
            }
          ]
        }
      ]
    }

/order_index/list 订单二级索引搜索

Method: POST
Class:  OrderIndexListView
请求:
    包含操作:['$in', '$gt', '$gte', '$lt', '$lte', '$ne', '$nin']
    ids 不能是'$ne', '$nin'
    group_id
    station_id
    settle_way
    user_id
    shop_id
    time_config_id
    status
    pstatus
    pay_status
    receive_begin_time
    receive_end_time
    date_time
    create_time
    modify_time

    cols    list    需要的订单二级索引表字段


响应:
    code M int 0为成功,其它为失败
    msg M string 错误提示信息
    data M str 返回的订单ID
    eg: {  
      "msg": "ok",
      "code": 0,
      "data": [
        'order_id': 'PL00001',
        'station_id': 'T00001',
        },]
      ]
    }