Commit 411120bd by linboxuan

getProductDetail result add channel_profit_rate

parent d75a9a75
......@@ -93,6 +93,10 @@ class AccessAuthAPI extends APIBase {
var result = await this.opPlatformUtils.logout(pobj);
return result;
}
async getAppInfo(pobj, qobj, req) {
var result = await this.utilsappSve.getAppInfo(pobj);
return result;
}
}
......
......@@ -33,7 +33,7 @@ class ProductService extends ServiceBase {
var pList = await this.productpriceDao.model.findAll({
where: { product_id: item.id },
attributes: ["id", "pay_code", "price", "supply_price", "service_charge", "public_expense", "is_default", "is_show", "price_type", "price_type_name",
"sort", "price_desc", "min_qty", "max_qty", "service_code"
"channel_profit_rate", "sort", "price_desc", "min_qty", "max_qty", "service_code"
],
order: [ [ "price", 'ASC' ] ],
raw: true
......
......@@ -49,5 +49,16 @@ class UtilsAppSve extends AppServiceBase {
};
return system.getResultSuccess(data);
}
async getAppInfo(pobj) {
var uapp_id = pobj.uappId || "";
var app = await this.appDao.findOne({uapp_id:uapp_id});
if(app) {
return system.getResultSuccess(app);
}
if(!app) {
return system.getResult(null, "渠道码错误")
}
}
}
module.exports = UtilsAppSve;
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