Commit 98f0bbb5 by sxy

feat: 复购商机相关数据入库记录

parent a3b4afeb
......@@ -29,14 +29,20 @@ class FgbusinesschanceAPI extends WEBBase {
case "create"://创建复购商机
opResult = await this.utilsFgbusinesschancSve.create(pobj, pobj.actionBody);
break;
case "getInfo"://获取商机
opResult = await this.utilsFgbusinesschancSve.getInfo(pobj, pobj.actionBody);
case "createOrderRefundFq":
opResult = await this.utilsFgbusinesschancSve.createOrderRefundFq(pobj, pobj.actionBody);
break;
case "createOnlineProductClassificiationFq":
opResult = await this.utilsFgbusinesschancSve.createOnlineProductClassificiationFq(pobj, pobj.actionBody);
break;
case "createOrderInfoAndPayFq":
opResult = await this.utilsFgbusinesschancSve.createOrderInfoAndPayFq(pobj, pobj.actionBody);
break;
// ------ 对蜂擎页面 -------
case "getCompanyInfo": // 获取工商信息--ok
case "getCompanyInfo": // 获取工商信息
opResult = await this.toolSve.getEntregistryByCompanyName(pobj.actionBody, req);
break;
case "getCompanyLabel":// 三十秒认知客户--ok
case "getCompanyLabel":// 三十秒认知客户
opResult = await this.utilsFgbusinesschancSve.getCompanyLabel(pobj, pobj.actionBody);
break
case "getRecommendProducts": // 获取推荐产品列表
......
......@@ -14,16 +14,7 @@ class UtilsFgbusinesschancService extends AppServiceBase {
this.centerAppUrl = settings.centerAppUrl();
this.centerAppPayUrl = settings.centerAppUrl() + "payment/paymentApi/springBoard";
};
// async getOrderInfo(pobj, actionBody) {
// var reqUrl = this.centerOrderUrl + "action/order/springBoard";
// var result = await this.restPostUrl(pobj, reqUrl);
// return result;
// }
async getInfo(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/fgbusinesschance/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
async create(pobj, actionBody) {
if (!actionBody.businessData) {
return system.getResult(null, "actionBody.businessData can not be empty,100290");
......@@ -52,11 +43,33 @@ class UtilsFgbusinesschancService extends AppServiceBase {
}
// async getCompanyInfo(pobj, actionBody) {
// if (!actionBody.companyName) {
// return system.getResult(null, "actionBody.companyName can not be empty,100290");
// }
// }
async createOrderRefundFq(pobj, actionBody) {
if (!actionBody || Object.keys(actionBody).length === 0) {
return system.getResult(null, "actionBody can not be empty,100290");
}
let url = this.centerOrderUrl + "action/fgbusinesschance/springBoard";
return await this.restPostUrl(pobj, url);
}
async createOnlineProductClassificiationFq(pobj, actionBody) {
if (!actionBody.product_id) {
return system.getResult(null, "actionBody.product_id can not be empty,100290");
}
let url = this.centerOrderUrl + "action/fgbusinesschance/springBoard";
return await this.restPostUrl(pobj, url);
}
async createOrderInfoAndPayFq(pobj, actionBody) {
if (!actionBody.order_pkid) {
return system.getResult(null, "actionBody.order_pkid can not be empty,100290");
}
if (!actionBody.order_no) {
return system.getResult(null, "actionBody.order_no can not be empty,100290");
}
let url = this.centerOrderUrl + "action/fgbusinesschance/springBoard";
return await this.restPostUrl(pobj, url);
}
async getCompanyLabel(pobj, actionBody) {
if (!actionBody.companyName) {
......
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