소스 검색

优化代码

fangqing 5 달 전
부모
커밋
2d16ebb69c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ruoyi-generator/src/main/java/com/ruoyi/generator/controller/CommunityCommentController.java

+ 1 - 0
ruoyi-generator/src/main/java/com/ruoyi/generator/controller/CommunityCommentController.java

@@ -112,6 +112,7 @@ public class CommunityCommentController extends BaseController {
                     BeanUtils.copyProperties(reply, replyVo);
                     replyVo.setNickName(sysUserService.selectUserById(replyVo.getUserId()).getNickName());
                     replyVo.setReply(true);
+                    replyVo.setAvatar(sysUserService.selectUserById(replyVo.getUserId()).getAvatar());
                     replyVos.add(replyVo);
                     //设置点赞数量和当前登录用户是否已点赞
                     List<CommunityCommentLike> commentLikeList = communityCommentLikeMapper.selectList(new QueryWrapper<CommunityCommentLike>()