Commit b05ec69a by linboxuan

lin add order/need statistics

parent d6ebca55
......@@ -146,6 +146,24 @@ class StatisticsCtl extends CtlBase {
}
}
// 渠道订单统计
async getChannelOrderStatistics(pobj, qobj, req) {
try {
const rs = await this.service.getChannelOrderStatistics(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
async getChannelNeedStatistics(pobj, qobj, req) {
try {
const rs = await this.service.getChannelNeedStatistics(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
}
module.exports = StatisticsCtl;
......@@ -219,6 +219,22 @@ class BaseClient {
return data;
}
async getChannelOrderStatistics(pobj) {
const data = await this.pushQiFuTong('/web/opaction/order/springBoard', {
"actionType": "getOrderStatisticsByChannel",
"actionBody": pobj
});
return data;
}
async getChannelNeedStatistics(pobj) {
const data = await this.pushQiFuTong('/web/action/opNeed/springBoard', {
"actionType": "getStatisticsByChannel",
"actionBody": pobj
});
return data;
}
async importTxNeeds(pobj) {
let url;
let query;
......
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