This commit is contained in:
Himit_ZH 2021-06-30 15:59:41 +08:00
parent 62f9e3af37
commit 571f668168
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public class CommentController {
if (comment.getDid() != null) {
UpdateWrapper<Discussion> discussionUpdateWrapper = new UpdateWrapper<>();
discussionUpdateWrapper.eq("id", comment.getDid())
.setSql("comment_num=comment_num" + (replyNum + 1));
.setSql("comment_num=comment_num-" + (replyNum + 1));
discussionService.update(discussionUpdateWrapper);
}
return CommonResult.successResponse(null, "删除成功");