Commit 7756d0d9 authored by 刘基明's avatar 刘基明

露出评论数量《3》

parent 52045725
...@@ -215,7 +215,7 @@ public class CommentService { ...@@ -215,7 +215,7 @@ public class CommentService {
for (ThemeQo theme : themes) { for (ThemeQo theme : themes) {
if (collect.containsKey(theme.getThemeId())) { if (collect.containsKey(theme.getThemeId())) {
List<CommentEntity> comments = collect.get(theme.getThemeId()); List<CommentEntity> comments = collect.get(theme.getThemeId());
theme.setRecentComments(ConvertUtil.comment2Simple(comments, nameMap)); theme.setRecentComments(ConvertUtil.comment2Simple(comments.subList(0,Math.min(comments.size(),3)), nameMap));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment