Commit fb7078cf by 兰国旗

产品详情页添加分类父id,父code,父name

parent d85dab51
......@@ -143,9 +143,12 @@ class MediaaggregationDao extends Dao {
total: 0,//总记录条数
rows: []
};
var sql = "select product_type_name,price_type,code,name,selling_point,price,original_price,sales_volume,product_detail_url,list_thumbnail_url,is_recommend,service_Introduction_info,process_flow_info,information_required_info,can_get_info,our_advantage_info from mc_product where deleted_at is null and is_enabled = 1 and code = :code ";
var dataCount = "select count(1) as dataCount from mc_product where deleted_at is null and is_enabled = 1 and code = :code ";
var sql = "select product_type_name,price_type,code,name,selling_point,price,original_price,sales_volume,product_detail_url,list_thumbnail_url,is_recommend,service_Introduction_info,process_flow_info,information_required_info,can_get_info,our_advantage_info,p_product_type_id,p_product_type_code,p_product_type_name from mc_product where deleted_at is null and is_enabled = 1 and code = :code ";
var list = await this.customQuery(sql, params);
returnRes.rows = list;
var tmpResultCount = await this.customQuery(dataCount, params);
returnRes.total = tmpResultCount && tmpResultCount.length > 0 ? tmpResultCount[0].dataCount : 0;
return returnRes;
}
......
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