From b06162b2966eea4f092b3edf3032de843059af4b Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 12 六月 2025 18:16:10 +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