Browse Source

更新文件 ArticleTweetImplDao.java

陈士柏 2 years ago
parent
commit
4a14ffbcf4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mhotel/src/com/happy/dao/impl/ArticleTweetImplDao.java

+ 1 - 1
mhotel/src/com/happy/dao/impl/ArticleTweetImplDao.java

@@ -588,7 +588,7 @@ public class ArticleTweetImplDao implements ArticleTweetDao {
 
         String sqlWhere = townId == null ? "" : "and at.location_id = '" + townId + "' ";
         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,at.is_top, \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,at.hotel_id, \n" + caseSql +
                 "(select count(*) from article_collect where is_lose = 0 and article_id = at.id) as collect_num\n" +
                 "from article_tweet at\n" +
                 "left join hotel_dict hd on hd.id = at.location_id\n" +