From b0fee54f8475336b05c50ef3154c51f60ebd63aa Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期日, 22 六月 2025 17:55:12 +0800 Subject: [PATCH] add:首页配置 --- src/main/java/com/mzl/flower/mapper/film/CommentLikesMapper.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/mzl/flower/mapper/film/CommentLikesMapper.java b/src/main/java/com/mzl/flower/mapper/film/CommentLikesMapper.java index e70d5b6..6b6404d 100644 --- a/src/main/java/com/mzl/flower/mapper/film/CommentLikesMapper.java +++ b/src/main/java/com/mzl/flower/mapper/film/CommentLikesMapper.java @@ -2,7 +2,9 @@ import com.mzl.flower.entity.film.CommentLikes; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.Update; import org.springframework.stereotype.Repository; /** @@ -30,4 +32,9 @@ @Select("select * from comment_likes where create_by = #{userId} and comment_id = #{commentId} ") CommentLikes getCommentLikeByUserIdAndCommentId(String userId, Integer commentId); + + @Update("UPDATE comment_likes SET status = #{status}, update_by = #{updateBy}, update_time = NOW() WHERE id = #{id}") + int updateStatusById(@Param("id") Long id, + @Param("status") Boolean status, + @Param("updateBy") String updateBy); } -- Gitblit v1.9.3