|
@@ -588,7 +588,7 @@ public class ArticleTweetImplDao implements ArticleTweetDao {
|
|
|
|
|
|
|
|
String sqlWhere = townId == null ? "" : "and at.location_id = '" + townId + "' ";
|
|
String sqlWhere = townId == null ? "" : "and at.location_id = '" + townId + "' ";
|
|
|
sqlWhere = sqlWhere + (keyWord == null ? "" : "and (at.title like '%" + keyWord + "%') ");
|
|
sqlWhere = sqlWhere + (keyWord == null ? "" : "and (at.title like '%" + keyWord + "%') ");
|
|
|
- String sql = "select at.id,at.location_id as town_id,hd.name as town_name,at.title,at.user_id,at.user_name,at.user_photo,at.content,at.create_date,at.publish_way, \n" + caseSql +
|
|
|
|
|
|
|
+ String sql = "select at.id,at.location_id as town_id,hd.name as town_name,at.title,at.user_id,at.user_name,at.user_photo,at.content,at.create_date,at.publish_way,at.is_top, \n" + caseSql +
|
|
|
"(select count(*) from article_collect where is_lose = 0 and article_id = at.id) as collect_num\n" +
|
|
"(select count(*) from article_collect where is_lose = 0 and article_id = at.id) as collect_num\n" +
|
|
|
"from article_tweet at\n" +
|
|
"from article_tweet at\n" +
|
|
|
"left join hotel_dict hd on hd.id = at.location_id\n" +
|
|
"left join hotel_dict hd on hd.id = at.location_id\n" +
|