Commit d597c89b by 兰国旗

字段调整,只增不删

parent fb7078cf
...@@ -35,7 +35,7 @@ class MediaaggregationDao extends Dao { ...@@ -35,7 +35,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 "; var dataCount = "select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 ";
var sql = "select pic_type_name,name,pic_url,jump_link from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 order by sequence desc"; var sql = "select pic_type_name,name,pic_url,jump_link_type,jump_link from mc_rotation_chart where deleted_at is null and pic_type = 2 and is_enabled = 1 order by sequence desc";
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);
...@@ -53,7 +53,7 @@ class MediaaggregationDao extends Dao { ...@@ -53,7 +53,7 @@ class MediaaggregationDao extends Dao {
}; };
var dataCount = "select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1"; var dataCount = "select count(1) as dataCount from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1";
var sql = "select pic_type_name,name,pic_url,jump_link from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1 order by sequence desc"; var sql = "select pic_type_name,name,pic_url,jump_link_type,jump_link from mc_rotation_chart where deleted_at is null and pic_type = 1 and is_enabled = 1 order by sequence desc";
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);
...@@ -87,7 +87,7 @@ class MediaaggregationDao extends Dao { ...@@ -87,7 +87,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_popular_recommendation where deleted_at is null and is_enabled = 1 "; var dataCount = "select count(1) as dataCount from mc_popular_recommendation where deleted_at is null and is_enabled = 1 ";
var sql = "select pic_position_name,pic_describe,pic_url,jump_link from mc_popular_recommendation where deleted_at is null and is_enabled = 1 "; var sql = "select pic_position_name,pic_describe,pic_url,jump_link_type,jump_link from mc_popular_recommendation where deleted_at is null and is_enabled = 1 ";
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);
...@@ -124,7 +124,7 @@ class MediaaggregationDao extends Dao { ...@@ -124,7 +124,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_code = :p_code "; var dataCount = "select count(1) as dataCount from mc_product_type where deleted_at is null and p_code = :p_code ";
var sql = "select p_id,p_code,p_name,code,name,pic_url,jump_link from mc_product_type where deleted_at is null and p_code = :p_code order by sequence desc"; var sql = "select p_id,p_code,p_name,code,name,pic_url,jump_link_type,jump_link from mc_product_type where deleted_at is null and p_code = :p_code 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);
...@@ -161,7 +161,7 @@ class MediaaggregationDao extends Dao { ...@@ -161,7 +161,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_bottom_menu_config where deleted_at is null "; var dataCount = "select count(1) as dataCount from mc_bottom_menu_config where deleted_at is null ";
var sql = "select name,button_position,button_type,is_distinguishtime,strategy_date,strategy_time_start,strategy_time_end,button_name,call_number,else_button_name,else_call_number from mc_bottom_menu_config where deleted_at is null "; var sql = "select name,button_position,button_type,else_button_type,is_distinguishtime,strategy_date,strategy_time_start,strategy_time_end,button_name,call_number,else_button_name,else_call_number from mc_bottom_menu_config where deleted_at is null ";
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);
...@@ -178,7 +178,7 @@ class MediaaggregationDao extends Dao { ...@@ -178,7 +178,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_cycle_product where deleted_at is null "; var dataCount = "select count(1) as dataCount from mc_cycle_product where deleted_at is null ";
var sql = "select cycle_type,cycle_type_name,pic_describe,pic_url,jump_link from mc_cycle_product where deleted_at is null order by sequence desc"; var sql = "select cycle_type,cycle_type_name,pic_describe,pic_url,jump_link_type,jump_link from mc_cycle_product where deleted_at is null order by sequence desc";
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);
...@@ -248,7 +248,7 @@ class MediaaggregationDao extends Dao { ...@@ -248,7 +248,7 @@ class MediaaggregationDao extends Dao {
rows: [] rows: []
}; };
var dataCount = "select count(1) as dataCount from mc_cycle_product where deleted_at is null and cycle_type = :cycle_type "; var dataCount = "select count(1) as dataCount from mc_cycle_product where deleted_at is null and cycle_type = :cycle_type ";
var sql = "select code,cycle_type,cycle_type_name,pic_describe,pic_url,jump_link from mc_cycle_product where deleted_at is null and cycle_type = :cycle_type"; var sql = "select code,cycle_type,cycle_type_name,pic_describe,pic_url,jump_link_type,jump_link from mc_cycle_product where deleted_at is null and cycle_type = :cycle_type";
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);
......
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