xiangpei
2025-06-25 654f4eebf519f015506b90d71637e6aad75e5b5c
framework/src/main/resources/mapper/lmk/VideoCommentMapper.xml
@@ -155,4 +155,19 @@
              video_id
    </select>
    <update id="updateCommentThumbsUpNumBatch">
        UPDATE lmk_video_comment
        SET thumbs_up_num = CASE id
        <foreach collection="list" item="comment">
            WHEN #{comment.id} THEN #{comment.countNum}
        </foreach>
        ELSE thumbs_up_num
        END
        WHERE id IN
        <foreach collection="list" item="comment" open="(" separator="," close=")">
            #{comment.id}
        </foreach>
    </update>
</mapper>