Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
27c396b1
Commit
27c396b1
authored
Dec 10, 2019
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
b183e84a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
4 deletions
+69
-4
xggsve-order/app/base/api/impl/op/action.js
+2
-3
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
+13
-0
xggsve-order/app/front/entry/public/apidoc/order/orderbase.md
+54
-1
No files found.
xggsve-order/app/base/api/impl/op/action.js
View file @
27c396b1
...
...
@@ -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
);
...
...
xggsve-order/app/base/service/impl/order/iborderbaseSve.js
View file @
27c396b1
...
...
@@ -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
}
`
);
}
}
/**
* 企服通 推送支付信息接口
...
...
xggsve-order/app/front/entry/public/apidoc/order/orderbase.md
View file @
27c396b1
...
...
@@ -2,7 +2,7 @@
1.
[
新增订单
](
#createOrder
)
1.
[
完善信息接口
](
#completedOrder
)
1.
[
订单办理接口
](
#handling
)
1.
[
企服通 推送支付信息接口
](
#updPriceOrStatu
s
)
1.
[
订单列表
](
#order
s
)
...
...
@@ -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`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment