Commit bda0c1cf by 兰国旗

laolan

parent 92911652
......@@ -94,8 +94,8 @@ class MediaaggregationDao extends Dao {
total: 0,//总记录条数
rows: []
};
var dataCount = "select count(1) as dataCount from mc_product where deleted_at is null and p_id is null";
var sql = "select * from mc_product where deleted_at is null and p_id is null";
var dataCount = "select count(1) as dataCount from mc_product_type where deleted_at is null and p_id is null";
var sql = "select * from mc_product_type where deleted_at is null and p_id is null";
var list = await this.customQuery(sql);
returnRes.rows = list;
......@@ -135,7 +135,7 @@ class MediaaggregationDao extends Dao {
var params = {
product_type_code: req.actionBody.product_type_code
};
var sql = "select * from mc_product where product_type_code = :product_type_code";
var sql = "select * from mc_product where deleted_at is null and product_type_code = :product_type_code";
var list = await this.customQuery(sql, params);
return list;
}
......@@ -145,14 +145,15 @@ class MediaaggregationDao extends Dao {
*/
async bottomMenuConfig(req) {
var params = {
company_id: req.actionBody.company_id
// company_id: req.actionBody.company_id,
company_id: 10
};
var returnRes = {
total: 0,//总记录条数
rows: []
};
var dataCount = "select count(1) as dataCount from mc_bottom_menu_config where deleted_at is null and company_id = :company_id ";
var sql = "select * from mc_bottom_menu_config where deleted_at is null company_id = :company_id ";
var dataCount = "select count(1) as dataCount from mc_bottom_menu_config where deleted_at is null and company_id = :company_id ";
var sql = "select * from mc_bottom_menu_config where deleted_at is null and company_id = :company_id ";
var list = await this.customQuery(sql,params);
returnRes.rows = list;
......
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