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
8d020ad1
Commit
8d020ad1
authored
Jan 20, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
0f049077
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
214 additions
and
68 deletions
+214
-68
xgg-admin/app/base/controller/impl/index/managerCtl.js
+0
-34
xgg-admin/app/base/service/impl/order/orderSve.js
+0
-34
xgg-admin/app/front/entry/public/apidoc/index/ptIndex.md
+214
-0
No files found.
xgg-admin/app/base/controller/impl/index/managerCtl.js
View file @
8d020ad1
...
...
@@ -101,38 +101,5 @@ class ManagerCtl extends CtlBase {
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
// 交付商统计
async
deliverStatTransData
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
}
if
(
!
params
.
deliver_id
)
{
return
system
.
getResult
(
null
,
`参数错误 交付商不能为空`
);
}
try
{
return
await
this
.
orderSve
.
deliverStatTransData
(
params
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
// 业务办理
async
businessManagement
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
}
if
(
!
params
.
deliver_id
)
{
return
system
.
getResult
(
null
,
`参数错误 交付商不能为空`
);
}
try
{
return
await
this
.
orderSve
.
businessManagement
(
params
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
module
.
exports
=
ManagerCtl
;
\ No newline at end of file
xgg-admin/app/base/service/impl/order/orderSve.js
View file @
8d020ad1
...
...
@@ -207,38 +207,5 @@ class OrderService extends ServiceBase {
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
// 交付商统计
async
deliverStatTransData
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
}
if
(
!
params
.
deliver_id
)
{
return
system
.
getResult
(
null
,
`参数错误 交付商不能为空`
);
}
try
{
return
await
this
.
callms
(
"order"
,
"deliverStatTransData"
,
params
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
// 业务办理
async
businessManagement
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
}
if
(
!
params
.
deliver_id
)
{
return
system
.
getResult
(
null
,
`参数错误 交付商不能为空`
);
}
try
{
return
await
this
.
callms
(
"order"
,
"businessManagement"
,
params
);
}
catch
(
error
)
{
console
.
log
(
error
);
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
module
.
exports
=
OrderService
;
\ No newline at end of file
xgg-admin/app/front/entry/public/apidoc/index/ptIndex.md
0 → 100644
View file @
8d020ad1
<a
name=
"menu"
>
目录
</a>
1.
[
数据简报
](
#statTransData
)
1.
[
办理事项
](
#needToBeDealtWith
)
1.
[
交付统计
](
#statDeliverData
)
## **<a name="transdata"> 本月交易数据</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/index/managerCtl/transData
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"current_date"
:
"2020-01"
//当前月份
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"orderPrice"
:
0
,
"days"
:
[
"2020-01-01"
,
"2020-01-02"
,
"2020-01-03"
,
"2020-01-04"
,
"2020-01-05"
,
"2020-01-06"
,
"2020-01-07"
,
"2020-01-08"
,
"2020-01-09"
,
"2020-01-10"
,
"2020-01-11"
,
"2020-01-12"
,
"2020-01-13"
,
"2020-01-14"
,
"2020-01-15"
,
"2020-01-16"
,
"2020-01-17"
,
"2020-01-18"
,
"2020-01-19"
,
"2020-01-20"
,
"2020-01-21"
,
"2020-01-22"
,
"2020-01-23"
,
"2020-01-24"
,
"2020-01-25"
,
"2020-01-26"
,
"2020-01-27"
,
"2020-01-28"
,
"2020-01-29"
,
"2020-01-30"
,
"2020-01-31"
],
"dayCounts"
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
6
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
"priceCounts"
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
]
},
"bizmsg"
:
"empty"
,
"requestid"
:
"16d441afe9374194a2d57d6c80156ea6"
}
```
## **<a name="needToBeDealtWith"> 办理事项</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/index/managerCtl/needToBeDealtWith
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"current_date"
:
"2020-01"
//当前月份
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"orderComplete"
:
0
,
//完成订单
"orderUnassignment"
:
4
,
//为分配订单
"orderUnexamine"
:
0
,
//未审核订单
"orderHandling"
:
2
//中在处理中订单
},
"bizmsg"
:
"empty"
,
"requestid"
:
"a4cd0083955d4ed9b1ddb248344defbe"
}
```
## **<a name="statDeliverData"> 交付统计</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/index/managerCtl/statDeliverData
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
```
javascript
{
"current_date"
:
"2020-01"
//当前月份
}
```
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
[
{
"serivce_price"
:
"300"
,
"deliver_name"
:
"21111"
,
"deliver_id"
:
"12222222"
,
"order_complete_count"
:
1
,
"order_handing_count"
:
1
},
{
"serivce_price"
:
"300000"
,
//服务费用
"deliver_name"
:
"开封薪企云服人力资源有限公司"
,
//交付商名称
"deliver_id"
:
"13129998281000176"
,
//交付商ID
"order_handing_count"
:
1
//办理中的订单数量
}
],
"bizmsg"
:
"empty"
,
"requestid"
:
"8e31229ac8d4438fa70e828382edbd0e"
}
```
\ No newline at end of file
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