From 8bfcdc67288b607e333da334ec84abc58ff6dfc4 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 12 六月 2025 15:11:11 +0800
Subject: [PATCH] 视频表增加字段

---
 framework/src/main/resources/mapper/lmk/VideoMapper.xml |   38 ++++++++++++++++++++++++++++----------
 1 files changed, 28 insertions(+), 10 deletions(-)

diff --git a/framework/src/main/resources/mapper/lmk/VideoMapper.xml b/framework/src/main/resources/mapper/lmk/VideoMapper.xml
index 304943f..c9ae243 100644
--- a/framework/src/main/resources/mapper/lmk/VideoMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/VideoMapper.xml
@@ -23,6 +23,9 @@
         <result column="weight" property="weight" />
         <result column="audit_pass_time" property="auditPassTime" />
         <result column="update_time" property="updateTime" />
+        <result column="video_content_type" property="videoContentType" />
+        <result column="video_type" property="videoType" />
+        <result column="video_imgs" property="videoImgs" />
     </resultMap>
 
     <!-- 寰俊鎺ㄨ崘瑙嗛 -->
@@ -49,7 +52,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -60,6 +62,9 @@
             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
         FROM
@@ -78,7 +83,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -89,6 +93,9 @@
             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
         FROM
@@ -107,7 +114,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -118,6 +124,9 @@
             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
         FROM
@@ -132,7 +141,7 @@
                 ) AS LVT ON LV.id = LVT.video_id
             </if>
         WHERE
-            LV.delete_flag = 0
+            LV.delete_flag = 0 AND LV.video_type = #{query.videoType}
             <if test="query.title != null and query.title != ''">AND LV.title LIKE CONCAT('%', #{query.title}, '%')</if>
             <if test="query.authorId != null and query.authorId != ''">AND LV.author_id = #{query.authorId}</if>
             <if test="query.status != null and query.status != ''">AND LV.status = #{query.status}</if>
@@ -147,7 +156,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -158,6 +166,9 @@
             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
@@ -165,7 +176,7 @@
             lmk_video LV
             LEFT JOIN li_member LM ON LV.author_id = LM.id
         WHERE
-            LV.delete_flag = 0 AND LV.status = '1'
+            LV.delete_flag = 0 AND LV.status = '1' AND LV.video_type = #{query.videoType}
     </select>
 
 
@@ -236,7 +247,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -247,6 +257,9 @@
             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
@@ -259,6 +272,7 @@
                 AND LV.status = '1'
             </if>
             AND LV.author_id = #{query.authorId}
+            AND LV.video_type = #{query.videoType}
         ORDER BY
             LV.collect_num DESC
     </select>
@@ -271,7 +285,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -282,6 +295,9 @@
             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
@@ -290,7 +306,7 @@
                 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.collect_type = 'video'
+            LMC.delete_flag = 0 AND LMC.user_id = #{query.authorId} AND LMC.collect_type = 'video' AND LV.video_type = #{query.videoType}
         ORDER BY
             LMC.create_time DESC
     </select>
@@ -315,7 +331,6 @@
             LV.video_duration,
             LV.video_file_key,
             LV.title,
-            LV.goods_id,
             LV.goods_view_num,
             LV.goods_order_num,
             LV.recommend,
@@ -326,6 +341,9 @@
             LV.weight,
             LV.audit_pass_time,
             LV.update_time,
+            LV.video_content_type,
+            LV.video_type,
+            LV.video_imgs,
             LV.id
         FROM
             lmk_video LV

--
Gitblit v1.8.0