Browse Source

详情展示五条评论

夏文涛 2 years ago
parent
commit
bca247cd22
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

@@ -284,7 +284,7 @@ public class ArticleTweetImplDao implements ArticleTweetDao {
         String sql = "select id,comment_parent_id as parent_id,comment_id as user_id,comment_name as user_name,comment_image as image,content,create_date as date " +
                 "from article_comment " +
                 "where article_id = :articleId and comment_parent_id = 0 " +
-                "ORDER BY create_date desc limit 0,3";
+                "ORDER BY create_date desc limit 0,5";
         MapSqlParameterSource sps = new MapSqlParameterSource();
         sps.addValue("articleId", articleId);
         List<ArticleCommentVo> list = null;