Commit 887a46c8 authored by 刘基明's avatar 刘基明

递归删除评论的回复 fix

parent e0d53782
...@@ -234,7 +234,7 @@ public class CommentService { ...@@ -234,7 +234,7 @@ public class CommentService {
List<CommentEntity> replies = commentMapper.selectList(new LambdaQueryWrapper<CommentEntity>() List<CommentEntity> replies = commentMapper.selectList(new LambdaQueryWrapper<CommentEntity>()
.eq(CommentEntity::getReplyId, commentId) .eq(CommentEntity::getReplyId, commentId)
.eq(CommentEntity::getDeleteTag, DeleteTagEnum.NOT_DELETED)); .eq(CommentEntity::getDeleteTag, DeleteTagEnum.NOT_DELETED));
if (CollectionUtils.isEmpty(replies)){ if (CollectionUtils.isNotEmpty(replies)){
return replies.get(0); return replies.get(0);
}else { }else {
return new CommentEntity(); return new CommentEntity();
......
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