forked from iVMiku/guidance-backend
修复bug
This commit is contained in:
@@ -21,6 +21,7 @@ public class Comment implements Serializable {
|
||||
|
||||
private Long postId;
|
||||
|
||||
@TableField("tutorialId")
|
||||
private Long tutorialId; // 新增字段
|
||||
|
||||
private String content;
|
||||
|
||||
@@ -14,11 +14,11 @@ import org.apache.ibatis.annotations.Select;
|
||||
public interface LikeMapper extends BaseMapper<Likee> {
|
||||
|
||||
// 获取帖子获赞数
|
||||
@Select("SELECT SUM(like_count) FROM posts WHERE user_openid = #{userOpenid}")
|
||||
|
||||
Long getPostLikeCount(@Param("userOpenid") String userOpenid);
|
||||
|
||||
// 获取评论获赞数
|
||||
@Select("SELECT SUM(like_count) FROM comments WHERE user_openid = #{userOpenid}")
|
||||
|
||||
Long getCommentLikeCount(@Param("userOpenid") String userOpenid);
|
||||
|
||||
// 查询帖子被点赞的总数
|
||||
|
||||
Reference in New Issue
Block a user