|
|
@@ -122,7 +122,7 @@ public class ForumPostReplyServiceImpl extends ServiceImpl<ForumPostReplyMapper,
|
|
|
QueryWrapper<ForumPostLike> queryWrapper3 = new QueryWrapper<>();
|
|
|
queryWrapper3.lambda().eq(ForumPostLike::getTargetId, forumPostReply.getReplyId());
|
|
|
queryWrapper3.lambda().eq(ForumPostLike::getUserId, loginUser.getId());
|
|
|
- Long aLong1 = forumPostLikeMapper.selectCount(queryWrapper1);
|
|
|
+ Long aLong1 = forumPostLikeMapper.selectCount(queryWrapper3);
|
|
|
if (aLong1 > 0) {
|
|
|
forumPostReply.setIsLike(1);
|
|
|
} else {
|