Commit 23b6bfd5 by linboxuan

lin add .package-lock.json

parent b49dc714
const CtlBase = require("../../ctl.base"); const CtlBase = require("../../ctl.base");
var system = require("../../../system"); var system = require("../../../system");
class StatisticsCtl extends CtlBase { class StatisticsCtl extends CtlBase {
constructor() { constructor() {
super("qifutong", CtlBase.getServiceName(StatisticsCtl)); super("qifutong", CtlBase.getServiceName(StatisticsCtl));
}
// 获取 渠道信息
async getAllChannels(pobj, qobj, req) {
try {
const rs = await this.service.getAllChannels(pobj);
return system.getResult(rs);
} catch (err) {
return system.getResult(null, err.message)
} }
// 获取 渠道信息 }
async getAllChannels(pobj, qobj, req) { // 获取 渠道信息
try { async getAllService(pobj, qobj, req) {
const rs = await this.service.getAllChannels(pobj); try {
return system.getResult(rs); const rs = await this.service.getAllService(pobj);
} catch (err) { return system.getResult(rs);
return system.getResult(null, err.message) } catch (err) {
} return system.getResult(null, err.message)
} }
}
// 获取 产品信息 // 获取 产品信息
async getAllProducts(pobj, qobj, req) { async getAllProducts(pobj, qobj, req) {
try { try {
const rs = await this.service.getAllProducts(pobj); const rs = await this.service.getAllProducts(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
// 获取 pathName // 获取 pathName
async getPathName(pobj, qobj, req) { async getPathName(pobj, qobj, req) {
try { try {
const rs = await this.service.getPathName(pobj); const rs = await this.service.getPathName(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
// 需求渠道分析 }
async getStatisticsByUappId(pobj, qobj, req) { // 需求渠道分析
try { async getStatisticsByUappId(pobj, qobj, req) {
const rs = await this.service.getStatisticsByUappId(pobj); try {
return system.getResult(rs); const rs = await this.service.getStatisticsByUappId(pobj);
} catch (err) { return system.getResult(rs);
return system.getResult(null, err.message) } catch (err) {
} return system.getResult(null, err.message)
} }
}
// 订单渠道分析 // 订单渠道分析
async getOrderStatisticsByUappId(pobj, qobj, req) { async getOrderStatisticsByUappId(pobj, qobj, req) {
try { try {
const rs = await this.service.getOrderStatisticsByUappId(pobj); const rs = await this.service.getOrderStatisticsByUappId(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
// 需求漏斗图 // 需求漏斗图
async getNeedFunnelStatistics(pobj, qobj, req) { async getNeedFunnelStatistics(pobj, qobj, req) {
try { try {
const rs = await this.service.getNeedFunnelStatistics(pobj); const rs = await this.service.getNeedFunnelStatistics(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
// 需求产品分析 // 需求产品分析
async getStatisticsByProduct(pobj, qobj, req) { async getStatisticsByProduct(pobj, qobj, req) {
try { try {
const rs = await this.service.getStatisticsByProduct(pobj); const rs = await this.service.getStatisticsByProduct(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
// 订单产品分析 // 订单产品分析
async getOrderStatisticsByProduct(pobj, qobj, req) { async getOrderStatisticsByProduct(pobj, qobj, req) {
try { try {
const rs = await this.service.getOrderStatisticsByProduct(pobj); const rs = await this.service.getOrderStatisticsByProduct(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
// 需求地区分析 // 需求地区分析
async getStatisticsByArea(pobj, qobj, req) { async getStatisticsByArea(pobj, qobj, req) {
try { try {
const rs = await this.service.getStatisticsByArea(pobj); const rs = await this.service.getStatisticsByArea(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
async getNeedComparison(pobj, qobj, req) { async getNeedComparison(pobj, qobj, req) {
try { try {
const rs = await this.service.getNeedComparison(pobj); const rs = await this.service.getNeedComparison(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
async getOrdersComparison(pobj, qobj, req) { }
try { async getOrdersComparison(pobj, qobj, req) {
const rs = await this.service.getOrdersComparison(pobj); try {
return system.getResult(rs); const rs = await this.service.getOrdersComparison(pobj);
} catch (err) { return system.getResult(rs);
return system.getResult(null, err.message) } catch (err) {
} return system.getResult(null, err.message)
} }
}
async getStatisticsList(pobj, qobj, req) { async getStatisticsList(pobj, qobj, req) {
try { try {
const rs = await this.service.getStatisticsList(pobj); const rs = await this.service.getStatisticsList(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
async importTxNeeds(pobj, qobj, req) { async importTxNeeds(pobj, qobj, req) {
try { try {
const rs = await this.service.importTxNeeds(pobj); const rs = await this.service.importTxNeeds(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
async getNeedProductType(pobj, qobj, req) { async getNeedProductType(pobj, qobj, req) {
try { try {
const rs = await this.service.getNeedProductType(pobj); const rs = await this.service.getNeedProductType(pobj);
return system.getResult(rs); return system.getResult(rs);
} catch (err) { } catch (err) {
return system.getResult(null, err.message) return system.getResult(null, err.message)
}
} }
}
} }
......
...@@ -4,6 +4,9 @@ class StatisticsService { ...@@ -4,6 +4,9 @@ class StatisticsService {
async getAllChannels(pobj) { async getAllChannels(pobj) {
return ToQiFuTong.getAllChannels(); return ToQiFuTong.getAllChannels();
} }
async getAllService(pobj) {
return ToQiFuTong.getAllService();
}
async getAllProducts(pobj) { async getAllProducts(pobj) {
return ToQiFuTong.getAllProducts(); return ToQiFuTong.getAllProducts();
} }
......
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