소스 검색

详情展示五条评论

夏文涛 2 년 전
부모
커밋
bca247cd22
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;