Commit e85c87b1 by 段启岩

修复动态删除赞

parent a2cb28a7
......@@ -261,8 +261,8 @@ public class PostServiceImpl extends ServiceImpl<PostMapper, Post> implements IP
// 4.删除动态点赞
QueryWrapper<PostPraise> postPraiseQueryWrapper = new QueryWrapper<>();
postCommentQueryWrapper.eq("target_id", postId);
postCommentQueryWrapper.eq("target_type", PostPraiseType.POST_PRAISE.getPraiseType());
postPraiseQueryWrapper.eq("target_id", postId);
postPraiseQueryWrapper.eq("target_type", PostPraiseType.POST_PRAISE.getPraiseType());
postPraiseService.remove(postPraiseQueryWrapper);
// 5.删除动态
......
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