Commit fb3edad4 by 王栋源

wdy

parent 62222c35
......@@ -82,8 +82,8 @@ class ProductService extends ServiceBase {
}
async getaliicpProduce(actionBody) {
var producesql = "SELECT pc.pay_code payCode,pt.channel_item_code channelItemCode,pc.price price FROM `p_product` pt JOIN p_product_price pc ON pt.id = pc.product_id WHERE pt.channel_item_name LIKE '%" + actionBody.area
+ "%' AND pt.path_code='/zzfw/icpsq/' ";
var producesql = "SELECT pc.pay_code payCode,pt.channel_item_code channelItemCode,pc.price price FROM `p_product` pt JOIN p_product_price pc ON pt.id = pc.product_id WHERE pt.channel_item_code LIKE '%" + actionBody.typeCode
+ "%' AND pc.price_desc='"+actionBody.province+"' ";
var produceinfo = await this.customQuery(producesql);
if (produceinfo) {
actionBody.payCode = produceinfo[0].payCode;
......
......@@ -18,27 +18,5 @@ class ProductTypeService extends ServiceBase {
return system.getResultSuccess(producttypeinfo);
}
async getIcpProductTypeInfo(actionBody,appInfo){
if(!actionBody.type){
return system.getResult(null, "type item is data empty !");
}
if(!appInfo){
return system.getResult(null, "appInfo item is data empty !");
}
var producttypeinfo=await this.findOne({"channel_type_code":actionBody.type,"uapp_id":appInfo.uapp_id});
return system.getResultSuccess(producttypeinfo);
}
async getIcpProductTypeInfo(actionBody,appInfo){
if(!actionBody.type){
return system.getResult(null, "channelCode item is data empty !");
}
if(!appInfo){
return system.getResult(null, "appInfo item is data empty !");
}
var producttypeinfo=await this.findOne({"channel_type_code":actionBody.type,"uapp_id":appInfo.uapp_id});
return system.getResultSuccess(producttypeinfo);
}
}
module.exports = ProductTypeService;
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