Commit 874aa8a7 by Sxy

feat: 统计详情列表

parent d6cb7bf6
......@@ -101,6 +101,15 @@ class StatisticsCtl extends CtlBase {
}
}
async getStatisticsList(pobj, qobj, req) {
try {
const rs = await this.service.getStatisticsList(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
}
}
}
......
......@@ -193,5 +193,19 @@ class StatisticsService {
}
};
}
async getStatisticsList(pobj) {
const data = await ToQiFuTong.getStatisticsList({
start: pobj.start,
end: pobj.end,
uapp_id: pobj.uapp_id,
type_code: pobj.type_code,
pageIndex: pobj.pageNum || 1,
pageSize: pobj.pageSize || 10,
listType: pobj.listType,
fuzzy_code: pobj.fuzzy_code
});
return data;
}
}
module.exports = StatisticsService;
\ No newline at end of file
......@@ -155,6 +155,45 @@ class BaseClient {
return data;
}
async getStatisticsList(pobj) {
let url;
let query;
switch (pobj.listType) {
case "business":
delete pobj.listType;
url = '/web/action/opNeed/springBoard'
query = {
"actionType": "getNeedComparisonList",
"actionBody": {
...pobj,
tag: "need"
}
}
break
case "businessToOrder":
delete pobj.listType;
url = '/web/action/opNeed/springBoard'
query = {
"actionType": "getNeedComparisonList",
"actionBody": {
...pobj,
tag: "needToOrder"
}
}
break
case "order":
delete pobj.listType;
url = '/web/opaction/order/springBoard'
query = {
"actionType": "getOrdersComparisonList",
"actionBody": pobj
}
break
}
const data = await this.pushQiFuTong(url, query);
return data;
}
// 获取一段时间内的所有日期
......
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