Commit 27c396b1 by 孙亚楠

dd

parent b183e84a
......@@ -46,12 +46,11 @@ class ActionAPI extends APIBase {
case "completedOrder": //完善信息接口
opResult = await this.iborderbaseSve.apiCompletedOrder(action_body);
break;
case "handling": //订单办理接口
opResult = await this.iborderbaseSve.apiHandling(action_body);
break;
case "updPriceOrStatus": //企服通 推送支付信息接口
opResult = await this.iborderbaseSve.completedOrderInfo(action_body);
case "orders": //订单列表
opResult = await this.iborderbaseSve.apiOrders(action_body);
break;
case "addOrder":
opResult = await this.iborderSve.apiAdd(action_body);
......
......@@ -117,6 +117,19 @@ class IborderbaseService extends ServiceBase {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
/**
* 订单列表
* @param {*} params
* @param {*} params.productType //产品类型
*/
async apiOrders(params){
try {
let childSve = this.getService(params.productType);
return await childSve.orderPage(params);
} catch (error) {
return system.getResult(null, `系统错误 错误信息 ${error}`);
}
}
/**
* 企服通 推送支付信息接口
......
......@@ -2,7 +2,7 @@
1. [新增订单](#createOrder)
1. [完善信息接口](#completedOrder)
1. [订单办理接口](#handling)
1. [企服通 推送支付信息接口](#updPriceOrStatus)
1. [订单列表](#orders)
......@@ -77,8 +77,61 @@
```
## **<a name="completedOrder"> 完善信息接口</a>**
[返回到目录](#menu)
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
``` javascript
{
"action_process": "test",
"action_type": "completedOrder",
"action_body": {
"currentPage": "1", //页码 非必填
"pageSize": "10", //记录条数 非必填
"id": "1", //发票ID 非必填
"productType":"1010" //商品类型 必填 "1000" 注册订单 "1010" 代开订单 "1030" 代账订单 "1040" 增值服务
}
}
```
#### 返回结果
```javascript
{
"status": 0,
"msg": "success",
"data": {
"count": 1,
"rows": [
{
"id": "13699868075000706",
"merchant_id": null,
"businessmen_id": null,
"orderpay_id": null,
"price": 50000,
"status": "1000",
"notes": "by myself",
"orderDeliverId": "",
"legalName": "president_nan",
"legalMobile": "18833836395",
"names": "driver baby",
"creditCode": "XXEIGIGKTI8989",
"isBank": 0,
"businessScope": "crateTanke",
"isInfoComplete": 1,
"created_at": "2019-12-09 02:03:49",
"updated_at": "2019-12-09T03:42:40.000Z",
"deleted_at": null,
"version": 0,
"statusName": ""
}
]
},
"requestid": "e940f89920b4427f93ddbe9c2ff06856"
}
```
## **<a name="allList"> 全部订单</a>**
[返回到目录](#menu)
#### 参数格式 `JSON`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment