|
|
@@ -196,11 +196,10 @@ public class FsUserVideoCommentServiceImpl implements IFsUserVideoCommentService
|
|
|
comment.setParentId(param.getParentId());
|
|
|
}
|
|
|
if (fsUserVideoCommentMapper.insertFsUserVideoComment(comment)>0){
|
|
|
+ // 更新对应的评论数
|
|
|
+ fsUserVideoMapper.addCommentCount(comment.getVideoId());
|
|
|
return R.ok().put("data",comment);
|
|
|
};
|
|
|
- // 更新对应的评论数
|
|
|
- fsUserVideoMapper.addCommentCount(comment.getVideoId());
|
|
|
-
|
|
|
return R.error("新增评论失败");
|
|
|
}
|
|
|
|