日志评论逻辑调整

This commit is contained in:
aikai 2024-08-12 15:42:01 +08:00
parent 51784630b1
commit 6c6847f788
2 changed files with 2 additions and 1 deletions

View File

@ -153,6 +153,7 @@ public class WorkLogCommentServiceImpl implements WorkLogCommentService {
Integer receiveNum = workLogCommentMapper.selectCountReceiveNum(userId);
vo.setCommentNum(commentNum);
vo.setReceiveNum(receiveNum);
vo.setReplyNum(replyNum);
vo.setAllNum(commentNum + replyNum + receiveNum);
return vo;

View File

@ -48,7 +48,7 @@
</if>
<if test="dto.isCommentOnMyBlog != null and dto.isCommentOnMyBlog == 1">
<if test="dto.userId != null">
AND f.start_user_id = #{userId}
AND f.start_user_id = #{dto.userId}
</if>
</if>
<if test="dto.isCommentOnMyBlog == null or dto.isCommentOnMyBlog == 0">