peng
2025-10-29 0c9521d93a745de0ec71d83c094a6047c0222398
framework/src/main/resources/mapper/lmk/VideoMapper.xml
@@ -814,6 +814,10 @@
    <select id="getAuthorLikeVideoPage" resultMap="WxResultMap">
        SELECT
            *
        FROM
            (
                SELECT
            LV.author_id,
            LV.cover_url,
            LV.video_fit,
@@ -823,7 +827,7 @@
            LV.goods_view_num,
            LV.goods_order_num,
            LV.recommend,
            LV.status,
                    LV.STATUS,
            LV.play_num,
            LV.comment_num,
            LV.collect_num,
@@ -835,17 +839,92 @@
            LV.video_type,
            LV.video_imgs,
            LV.id,
            LM.nick_name as authorName,
            LM.face as authorAvatar
                    LM.nick_name AS authorName,
                    LM.face AS authorAvatar,
                    LV.create_time
        FROM
            lmk_thumbs_up_record LMC
                INNER JOIN lmk_video LV ON LMC.ref_id = LV.id AND LV.delete_flag = 0 AND LV.status = '1'
                        INNER JOIN lmk_video LV ON LMC.ref_id = LV.id
                        AND LV.delete_flag = 0
                        AND LV.STATUS = '1'
                LEFT JOIN li_member LM ON LV.author_id = LM.id
        WHERE
            LMC.delete_flag = 0 AND LMC.user_id = #{query.authorId} AND LMC.thumbs_up_type = 'video' AND LV.video_type = #{query.videoType}
                    LMC.delete_flag = 0
                  AND LM.id IS NOT NULL
                  AND LMC.user_id = #{query.authorId} AND LMC.thumbs_up_type = 'video' AND LV.video_type = #{query.videoType}
                UNION ALL
                SELECT
                    LV.author_id,
                    LV.cover_url,
                    LV.video_fit,
                    LV.video_duration,
                    LV.video_file_key,
                    LV.title,
                    LV.goods_view_num,
                    LV.goods_order_num,
                    LV.recommend,
                    LV.STATUS,
                    LV.play_num,
                    LV.comment_num,
                    LV.collect_num,
                    LV.thumbs_up_num,
                    LV.weight,
                    LV.audit_pass_time,
                    LV.update_time,
                    LV.video_content_type,
                    LV.video_type,
                    LV.video_imgs,
                    LV.id,
                    LM.nick_name AS authorName,
                    LM.avatar AS authorAvatar,
                    LV.create_time
                FROM
                    lmk_thumbs_up_record LMC
                        INNER JOIN lmk_video LV ON LMC.ref_id = LV.id
                        AND LV.delete_flag = 0
                        AND LV.STATUS = '1'
                        LEFT JOIN li_admin_user LM ON LV.author_id = LM.id
                WHERE
                    LMC.delete_flag = 0
                  AND LM.id IS NOT NULL
                  AND LMC.user_id = #{query.authorId} AND LMC.thumbs_up_type = 'video' AND LV.video_type = #{query.videoType}) t
        ORDER BY
            LMC.create_time DESC
            t.create_time DESC
    </select>
<!--    <select id="getAuthorLikeVideoPage" resultMap="WxResultMap">-->
<!--        SELECT-->
<!--            LV.author_id,-->
<!--            LV.cover_url,-->
<!--            LV.video_fit,-->
<!--            LV.video_duration,-->
<!--            LV.video_file_key,-->
<!--            LV.title,-->
<!--            LV.goods_view_num,-->
<!--            LV.goods_order_num,-->
<!--            LV.recommend,-->
<!--            LV.status,-->
<!--            LV.play_num,-->
<!--            LV.comment_num,-->
<!--            LV.collect_num,-->
<!--            LV.thumbs_up_num,-->
<!--            LV.weight,-->
<!--            LV.audit_pass_time,-->
<!--            LV.update_time,-->
<!--            LV.video_content_type,-->
<!--            LV.video_type,-->
<!--            LV.video_imgs,-->
<!--            LV.id,-->
<!--            LM.nick_name as authorName,-->
<!--            LM.face as authorAvatar-->
<!--        FROM-->
<!--            lmk_thumbs_up_record LMC-->
<!--                INNER JOIN lmk_video LV ON LMC.ref_id = LV.id AND LV.delete_flag = 0 AND LV.status = '1'-->
<!--                LEFT JOIN li_member LM ON LV.author_id = LM.id-->
<!--        WHERE-->
<!--            LMC.delete_flag = 0 AND LMC.user_id = #{query.authorId} AND LMC.thumbs_up_type = 'video' AND LV.video_type = #{query.videoType}-->
<!--        ORDER BY-->
<!--            LMC.create_time DESC-->
<!--    </select>-->
    <!-- 微信视频编辑详情 -->