获取订单列表数据
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取订单列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://dmg.nex-i.cn/v2/order/list</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>请求头:</strong></p>
<ul>
<li>Content-Type:application/json</li>
<li>token: {登录时获取的token}</li>
</ul>
<p><strong>请求参数:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">名称</th>
<th style="text-align: left;">字段</th>
<th style="text-align: left;">类型</th>
<th>必填</th>
<th>默认</th>
<th>示例</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">关键词</td>
<td style="text-align: left;">search</td>
<td style="text-align: left;">String</td>
<td>否</td>
<td></td>
<td>13888888888</td>
<td>订单号、手机号查询</td>
</tr>
<tr>
<td style="text-align: left;">开始时间</td>
<td style="text-align: left;">beginTime</td>
<td style="text-align: left;">date</td>
<td>否</td>
<td></td>
<td>2021-07-01 00:00:00</td>
<td>开始时间</td>
</tr>
<tr>
<td style="text-align: left;">结束时间</td>
<td style="text-align: left;">endTime</td>
<td style="text-align: left;">date</td>
<td>否</td>
<td></td>
<td>2021-07-01 00:00:00</td>
<td>结束时间</td>
</tr>
<tr>
<td style="text-align: left;">状态</td>
<td style="text-align: left;">payStatus</td>
<td style="text-align: left;">int</td>
<td>否</td>
<td></td>
<td>1</td>
<td>0:未付款,1:已付款,2:支付超时,3:无需付款,4:扣款中,99:已退款</td>
</tr>
<tr>
<td style="text-align: left;">页码</td>
<td style="text-align: left;">page</td>
<td style="text-align: left;">int</td>
<td>否</td>
<td>1</td>
<td></td>
<td>页码,从1开始</td>
</tr>
<tr>
<td style="text-align: left;">页码</td>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">int</td>
<td>否</td>
<td>20</td>
<td></td>
<td>每页显示条数,默认:20</td>
</tr>
</tbody>
</table>
<p><strong>请求示例:</strong></p>
<pre><code>{
"beginTime":"2021-07-01 00:00:00",
"endTime":"2021-07-15 23:59:59",
"page":1,
"pageSize":10,
"verify":"1",
"payStatus":1,
"search":""
}</code></pre>
<p><strong>返回示例:</strong></p>
<pre><code>{
"code": 10000,
"data": {
"list": [
{
"id": 220998,
"uid": 237,
"order_no": "T210706130341264116",
"device_id": 164,
"discount": 0,
"amount": 11.8,
"lock_status": 2,
"goods_status": 1,
"pay_status": 1,
"pay_type": 2,
"verify": 1,
"create_time": 1625547821,
"goods": [
{
"id": 407849,
"goods_id": 300,
"goods_sku": "23",
"count": 1,
"amount": 11.8,
"banner": "http://asset.nex-i.cn/goods/5f5cc4f32674c.png"
}
],
"device": {
"id": "164",
"box_id": "869012040629680(注销210722)",
"name": ""
}
}
],
"total": 3
},
"msg": "Success"
}</code></pre>
<p><strong>Java请求示例</strong> </p>
<pre><code>OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"beginTime\":\"2021-07-01 00:00:00\",\"endTime\":\"2021-07-15 23:59:59\", \"page\":1,\"pageSize\":10,\"verify\":\"1\",\"payStatus\":1,\"search\":\"\"}");
Request request = new Request.Builder()
.url("http://admin.nex-i.cn/api/order/list")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("token", "W5alSp5f2cFpqWGIsslkxmy0ma7hFMvvIS")
.build();
Response response = client.newCall(request).execute();</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>