Commit d85dab51 by 兰国旗

产品列表及详情页添加price_type字段

parent d49a3eb1
...@@ -18,7 +18,7 @@ class MediaaggregationDao extends Dao { ...@@ -18,7 +18,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 "; var dataCount = "select count(1) as dataCount from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 ";
var sql = "select product_type_code,product_type_name,code,name,selling_point,price,original_price,sales_volume,product_detail_url,list_thumbnail_url,is_recommend,service_Introduction_info from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 order by sequence desc"; var sql = "select product_type_code,product_type_name,code,name,selling_point,price_type,price,original_price,sales_volume,product_detail_url,list_thumbnail_url,is_recommend,service_Introduction_info from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 order by sequence desc";
var list = await this.customQuery(sql, params); var list = await this.customQuery(sql, params);
returnRes.rows = list; returnRes.rows = list;
var tmpResultCount = await this.customQuery(dataCount, params); var tmpResultCount = await this.customQuery(dataCount, params);
...@@ -143,7 +143,7 @@ class MediaaggregationDao extends Dao { ...@@ -143,7 +143,7 @@ class MediaaggregationDao extends Dao {
total: 0,//总记录条数 total: 0,//总记录条数
rows: [] 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,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 list = await this.customQuery(sql, params); var list = await this.customQuery(sql, params);
returnRes.rows = list; 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