fix bug
This commit is contained in:
parent
62f9e3af37
commit
571f668168
|
@ -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, "删除成功");
|
||||
|
|
Loading…
Reference in New Issue