Commit 743bb459 by 兰国旗

产品一类跳转,产品详情页结构

parent 3525cf7d
...@@ -104,7 +104,7 @@ class MediaaggregationDao extends Dao { ...@@ -104,7 +104,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_product_type where deleted_at is null and p_id = 0 "; var dataCount = "select count(1) as dataCount from mc_product_type where deleted_at is null and p_id = 0 ";
var sql = "select code,name,pic_url,jump_link from mc_product_type where deleted_at is null and p_id = 0 order by sequence asc"; var sql = "select p_id,p_code,p_name,jump_link_type,code,name,pic_url,jump_link from mc_product_type where deleted_at is null and p_id = 0 order by sequence asc";
var list = await this.customQuery(sql); var list = await this.customQuery(sql);
returnRes.rows = list; returnRes.rows = list;
var tmpResultCount = await this.customQuery(dataCount); var tmpResultCount = await this.customQuery(dataCount);
...@@ -139,8 +139,13 @@ class MediaaggregationDao extends Dao { ...@@ -139,8 +139,13 @@ class MediaaggregationDao extends Dao {
var params = { var params = {
code: req.actionBody.code code: req.actionBody.code
}; };
var returnRes = {
total: 0,//总记录条数
rows: []
};
var sql = "select product_type_name,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 sql = "select product_type_name,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 returnRes = await this.customQuery(sql, params); var list = await this.customQuery(sql, params);
returnRes.rows = list;
return returnRes; 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