Explorar o código

详情展示五条评论

夏文涛 %!s(int64=2) %!d(string=hai) anos
pai
achega
bca247cd22
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;