vardataCount="select count(1) as dataCount from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 and company_id = :company_id ";
varsql="select * from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 and company_id = :company_id ";
vardataCount="select count(1) as dataCount from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 ";
varsql="select * from mc_product where deleted_at is null and product_type_code = :product_type_code and is_enabled = 1 ";
varlist=awaitthis.customQuery(sql,params);
returnRes.rows=list;
...
...
@@ -31,19 +30,16 @@ class MediaaggregationDao extends Dao {
* 轮播图
*/
asyncrotationChartList(req){
varparams={
company_id:req.actionBody.company_id
};
varreturnRes={
total:0,//总记录条数
rows:[]
};
vardataCount="select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 and company_id = :company_id ";
varsql="select * from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 and company_id = :company_id ";
vardataCount="select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 ";
varsql="select * from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 ";
@@ -52,19 +48,16 @@ class MediaaggregationDao extends Dao {
* 列表头图
*/
asynctablePicList(req){
varparams={
company_id:req.actionBody.company_id
};
varreturnRes={
total:0,//总记录条数
rows:[]
};
vardataCount="select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1 and company_id = :company_id ";
varsql="select * from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1 and company_id = :company_id ";
vardataCount="select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1 ";
varsql="select * from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1 ";
vardataCount="select count(1) as dataCount from mc_product left join mc_product_type on mc_product.product_type_id = mc_product_type.id where mc_product.deleted_at is null and mc_product_type.deleted_at is null and mc_product.is_enabled = 1 and p_product_type_code = :p_product_type_code and mc_product_type.company_id = :company_id ";
varsql="select * from mc_product left join mc_product_type on mc_product.product_type_id = mc_product_type.id where mc_product.deleted_at is null and mc_product_type.deleted_at is null and mc_product.is_enabled = 1 and mc_product.p_product_type_code = :p_product_type_code and mc_product_type.company_id = :company_id ";
vardataCount="select count(1) as dataCount from mc_product left join mc_product_type on mc_product.product_type_id = mc_product_type.id where mc_product.deleted_at is null and mc_product_type.deleted_at is null and mc_product.is_enabled = 1 and p_product_type_code = :p_product_type_code ";
varsql="select * from mc_product left join mc_product_type on mc_product.product_type_id = mc_product_type.id where mc_product.deleted_at is null and mc_product_type.deleted_at is null and mc_product.is_enabled = 1 and mc_product.p_product_type_code = :p_product_type_code ";
varlist=awaitthis.customQuery(sql,params);
returnRes.rows=list;
...
...
@@ -158,11 +141,10 @@ class MediaaggregationDao extends Dao {
*/
asyncproductDetail(req){
varparams={
code:req.actionBody.code,
company_id:req.actionBody.company_id
code:req.actionBody.code
};
varsql="select * from mc_product where deleted_at is null and is_enabled = 1 and code = :code and company_id = :company_id ";
varsql="select * from mc_product where deleted_at is null and is_enabled = 1 and code = :code ";
varlist=awaitthis.customQuery(sql,params);
returnlist;
}
...
...
@@ -171,19 +153,16 @@ class MediaaggregationDao extends Dao {
* 吸底菜单
*/
asyncbottomMenuConfig(req){
varparams={
company_id:req.actionBody.company_id
};
varreturnRes={
total:0,//总记录条数
rows:[]
};
vardataCount="select count(1) as dataCount from mc_bottom_menu_config where deleted_at is null and company_id = :company_id ";
varsql="select * from mc_bottom_menu_config where deleted_at is null and company_id = :company_id ";
vardataCount="select count(1) as dataCount from mc_bottom_menu_config where deleted_at is null ";
varsql="select * from mc_bottom_menu_config where deleted_at is null ";