| | |
| | | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | @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); |
| | | } |