Commit 17096f58 by 孙亚楠

dd

parent 63c0a45f
...@@ -66,8 +66,11 @@ class ManagerCtl extends CtlBase { ...@@ -66,8 +66,11 @@ class ManagerCtl extends CtlBase {
// 数据简报 // 数据简报
async statTransData(params) { async statTransData(params) {
if (!params.current_date) { if(!params.current_date){
return system.getResult(null, `参数错误 当前时间不能为空`); let nowTime =new Date();
let month = nowTime.getMonth() + 1;
month = month<10?"0"+month:month;
params.current_date = nowTime.getFullYear()+"-"+month;
} }
try { try {
return await this.orderSve.statTransData(params); return await this.orderSve.statTransData(params);
...@@ -78,9 +81,13 @@ class ManagerCtl extends CtlBase { ...@@ -78,9 +81,13 @@ class ManagerCtl extends CtlBase {
} }
//待办事项 //待办事项
async needToBeDealtWith(params) { async needToBeDealtWith(params) {
if (!params.current_date) { if(!params.current_date){
return system.getResult(null, `参数错误 当前时间不能为空`); let nowTime =new Date();
let month = nowTime.getMonth() + 1;
month = month<10?"0"+month:month;
params.current_date = nowTime.getFullYear()+"-"+month;
} }
try { try {
return await this.orderSve.needToBeDealtWith(params); return await this.orderSve.needToBeDealtWith(params);
} catch (error) { } catch (error) {
...@@ -91,8 +98,11 @@ class ManagerCtl extends CtlBase { ...@@ -91,8 +98,11 @@ class ManagerCtl extends CtlBase {
//交付商统计 //交付商统计
async statDeliverData(params) { async statDeliverData(params) {
if (!params.current_date) { if(!params.current_date){
return system.getResult(null, `参数错误 当前时间不能为空`); let nowTime =new Date();
let month = nowTime.getMonth() + 1;
month = month<10?"0"+month:month;
params.current_date = nowTime.getFullYear()+"-"+month;
} }
try { try {
return await this.orderSve.statDeliverData(params); return await this.orderSve.statDeliverData(params);
......
...@@ -181,8 +181,8 @@ class System { ...@@ -181,8 +181,8 @@ class System {
// merchant: "http://127.0.0.1:3101" + path, // merchant: "http://127.0.0.1:3101" + path,
// 订单服务 // 订单服务
order: domain + ":3103" + path, // order: domain + ":3103" + path,
// order: "http://127.0.0.1:3103" + path, order: "http://127.0.0.1:3103" + path,
// 发票服务 // 发票服务
invoice: domain + ":3105" + path, invoice: domain + ":3105" + path,
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
  1 [发票业务汇总](/doc/index/index3.md)   1 [发票业务汇总](/doc/index/index3.md)
1 [平台数据概览](/doc/index/ptIndex.md)
## 公共服务 ## 公共服务
  1 [公共服务](/doc/common/common.md)   1 [公共服务](/doc/common/common.md)
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
1. [交付统计](#statDeliverData) 1. [交付统计](#statDeliverData)
## **<a name="transdata"> 本月交易数据</a>** ## **<a name="statTransData"> 本月交易数据</a>**
[返回到目录](#menu) [返回到目录](#menu)
##### URL ##### URL
[/web/index/managerCtl/transData] [/web/index/managerCtl/statTransData]
#### 参数格式 `JSON` #### 参数格式 `JSON`
#### HTTP请求方式 `POST` #### HTTP请求方式 `POST`
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
"status": 0, "status": 0,
"msg": "操作成功", "msg": "操作成功",
"data": { "data": {
"orderCount": 8,
"orderPrice": 0, "orderPrice": 0,
"days": [ "days": [
"2020-01-01", "2020-01-01",
...@@ -79,7 +80,7 @@ ...@@ -79,7 +80,7 @@
0, 0,
0, 0,
0, 0,
6, 8,
0, 0,
0, 0,
0, 0,
...@@ -128,7 +129,7 @@ ...@@ -128,7 +129,7 @@
] ]
}, },
"bizmsg": "empty", "bizmsg": "empty",
"requestid": "16d441afe9374194a2d57d6c80156ea6" "requestid": "0f79617571a34e65b934a84c21eec321"
} }
``` ```
......
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