Commit 3f9c415b by 任晓松

需求、订单对比

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