Commit 3f9c415b by 任晓松

需求、订单对比

parent f6c0281c
......@@ -66,6 +66,9 @@ class OpNeed extends APIBase {
case "getNeedFunnelStatistics":
opResult = await this.utilsOpNeedSve.getNeedFunnelStatistics(pobj);
break;
case "getNeedComparison":
opResult = await this.utilsOpNeedSve.getNeedComparison(pobj);
break;
default:
opResult = system.getResult(null, "action_type参数错误");
break;
......
......@@ -39,7 +39,10 @@ class ProductAPI extends WEBBase {
opResult = await this.utilsOrderSve.getOrdersStatisticsByUappId(pobj);
break;
case "getOrderStatisticsByProduct":
opResult = await this.utilsOrderSve.getOrdersStatisticsByProduct(pobj);
opResult = await this.utilsOrderSve.getOrdersComparison(pobj);
break;
case "getOrdersComparison":
opResult = await this.utilsOrderSve.getOrdersComparison(pobj);
break;
case "getOrderDetails"://获取订单详情信息
opResult = await this.utilsOrderSve.getOrderDetails(pobj, pobj.actionBody);
......
......@@ -406,6 +406,20 @@ class UtilsOpNeedService extends AppServiceBase {
}
/**
* 需求量对比
* @param pobj
* @returns {Promise<void>}
*/
async getNeedComparison(pobj){
let url = this.centerOrderUrl + "action/opNeed/springBoard";
let result = await this.restPostUrl(pobj, url);
if(result.status != 0){
return system.getResultFail(-1);
}
return result;
}
/**
* 需求统计(地区维度)
* @param pobj
* @returns {Promise<void>}
......
......@@ -256,6 +256,20 @@ class UtilsOrderService extends AppServiceBase {
return system.getResultSuccess(reArr);
}
/**
* 订单数量对比
* @param pobj
* @returns {Promise<void>}
*/
async getOrdersComparison(pobj){
let url = this.centerOrderUrl + "action/order/springBoard";
let result = await this.restPostUrl(pobj, url);
if(result.status != 0){
return system.getResultFail(-1);
}
return result;
}
async getOrderDetails(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/order/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
......
......@@ -17,7 +17,7 @@ module.exports = {
"ncSubmitMaterial", "ncNotification", "ncSubmitSolution", "ncCloseNeed", "ncClosePlan",
"rtSubmitMaterial", "rtNotification", "rtSubmitSolution", "rtCloseNeed", "rtClosePlan",
"getParamsFor360", "addOrderWeb", "getPayRecords", "getLoginInfo", "putUserMobileByVcode",
"putUserPwdByMobile", "icpNotifyNew","getOrderStatisticsByUappId","getOrderStatisticsByProduct",
"putUserPwdByMobile", "icpNotifyNew","getOrderStatisticsByUappId","getOrderStatisticsByProduct","getOrdersComparison",
//百度工商注册
"regGetInfoByChannelNeedNo","submitRegNeed","regFeedbackSubmit","regOrderStatus","regOrderClose",
"getSolutionByChannelOrderNo","regSubmitSolution","regNeedClose",
......
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