|
@@ -168,6 +168,16 @@ public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> impl
|
168
|
168
|
childCommentQuery.eq("parent_id", e.getCommentId());
|
169
|
169
|
childCommentQuery.eq("status", 1);
|
170
|
170
|
List<Comment> comments = commentMapper.selectList(childCommentQuery);
|
|
171
|
+
|
|
172
|
+ comments.forEach(x -> {
|
|
173
|
+ // 查询图片
|
|
174
|
+ QueryWrapper<CommentImg> queryPImgWrapper = new QueryWrapper<>();
|
|
175
|
+ queryPImgWrapper.eq("comment_id", e.getCommentId());
|
|
176
|
+ queryPImgWrapper.eq("status", 1);
|
|
177
|
+ queryPImgWrapper.orderByAsc("order_no");
|
|
178
|
+ List<CommentImg> commentFImgs = commentImgMapper.selectList(queryPImgWrapper);
|
|
179
|
+ x.setCommentImgList(commentFImgs);
|
|
180
|
+ });
|
171
|
181
|
e.setChildComment(comments);
|
172
|
182
|
|
173
|
183
|
// 查询图片
|