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>