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
17096f58
Commit
17096f58
authored
Jan 20, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
63c0a45f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
12 deletions
+25
-12
xgg-admin/app/base/controller/impl/index/managerCtl.js
+16
-6
xgg-admin/app/base/system.js
+2
-2
xgg-admin/app/front/entry/public/apidoc/README.md
+2
-0
xgg-admin/app/front/entry/public/apidoc/index/ptIndex.md
+5
-4
No files found.
xgg-admin/app/base/controller/impl/index/managerCtl.js
View file @
17096f58
...
...
@@ -66,8 +66,11 @@ class ManagerCtl extends CtlBase {
// 数据简报
async
statTransData
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
if
(
!
params
.
current_date
){
let
nowTime
=
new
Date
();
let
month
=
nowTime
.
getMonth
()
+
1
;
month
=
month
<
10
?
"0"
+
month
:
month
;
params
.
current_date
=
nowTime
.
getFullYear
()
+
"-"
+
month
;
}
try
{
return
await
this
.
orderSve
.
statTransData
(
params
);
...
...
@@ -78,9 +81,13 @@ class ManagerCtl extends CtlBase {
}
//待办事项
async
needToBeDealtWith
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
if
(
!
params
.
current_date
){
let
nowTime
=
new
Date
();
let
month
=
nowTime
.
getMonth
()
+
1
;
month
=
month
<
10
?
"0"
+
month
:
month
;
params
.
current_date
=
nowTime
.
getFullYear
()
+
"-"
+
month
;
}
try
{
return
await
this
.
orderSve
.
needToBeDealtWith
(
params
);
}
catch
(
error
)
{
...
...
@@ -91,8 +98,11 @@ class ManagerCtl extends CtlBase {
//交付商统计
async
statDeliverData
(
params
)
{
if
(
!
params
.
current_date
)
{
return
system
.
getResult
(
null
,
`参数错误 当前时间不能为空`
);
if
(
!
params
.
current_date
){
let
nowTime
=
new
Date
();
let
month
=
nowTime
.
getMonth
()
+
1
;
month
=
month
<
10
?
"0"
+
month
:
month
;
params
.
current_date
=
nowTime
.
getFullYear
()
+
"-"
+
month
;
}
try
{
return
await
this
.
orderSve
.
statDeliverData
(
params
);
...
...
xgg-admin/app/base/system.js
View file @
17096f58
...
...
@@ -181,8 +181,8 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order
:
domain
+
":3103"
+
path
,
//
order: "http://127.0.0.1:3103" + path,
//
order: domain + ":3103" + path,
order
:
"http://127.0.0.1:3103"
+
path
,
// 发票服务
invoice
:
domain
+
":3105"
+
path
,
...
...
xgg-admin/app/front/entry/public/apidoc/README.md
View file @
17096f58
...
...
@@ -5,6 +5,8 @@
1
[
发票数据概览
](
/doc/index/index2.md
)
1
[
发票业务汇总
](
/doc/index/index3.md
)
1
[
平台数据概览
](
/doc/index/ptIndex.md
)
## 公共服务
1
[
公共服务
](
/doc/common/common.md
)
...
...
xgg-admin/app/front/entry/public/apidoc/index/ptIndex.md
View file @
17096f58
...
...
@@ -4,10 +4,10 @@
1.
[
交付统计
](
#statDeliverData
)
## **<a name="
transd
ata"> 本月交易数据</a>**
## **<a name="
statTransD
ata"> 本月交易数据</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/index/managerCtl/
t
ransData
]
[
/web/index/managerCtl/
statT
ransData
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
...
...
@@ -26,6 +26,7 @@
"status"
:
0
,
"msg"
:
"操作成功"
,
"data"
:
{
"orderCount"
:
8
,
"orderPrice"
:
0
,
"days"
:
[
"2020-01-01"
,
...
...
@@ -79,7 +80,7 @@
0
,
0
,
0
,
6
,
8
,
0
,
0
,
0
,
...
...
@@ -128,7 +129,7 @@
]
},
"bizmsg"
:
"empty"
,
"requestid"
:
"
16d441afe9374194a2d57d6c80156ea6
"
"requestid"
:
"
0f79617571a34e65b934a84c21eec321
"
}
```
...
...
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