From 890703c95f05eb7507441d12eee27fd21197e8c0 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 12 六月 2025 11:43:25 +0800
Subject: [PATCH] 视频表增加字段
---
framework/src/main/resources/mapper/lmk/VideoMapper.xml | 76 ++++++++++++++++++++++++++++++++++----
1 files changed, 68 insertions(+), 8 deletions(-)
diff --git a/framework/src/main/resources/mapper/lmk/VideoMapper.xml b/framework/src/main/resources/mapper/lmk/VideoMapper.xml
index 22895cf..d28f9d9 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>
<!-- 寰俊鎺ㄨ崘瑙嗛 -->
@@ -31,12 +34,13 @@
<result column="author_id" property="authorId" />
<result column="authorName" property="authorName" />
<result column="authorAvatar" property="authorAvatar" />
- <result column="cover_url" property="coverUrl" />
+ <result column="cover_url" property="coverFileKey" />
<result column="video_file_key" property="videoFileKey" />
<result column="video_fit" property="videoFit" />
<result column="title" property="title" />
<result column="collect_num" property="collectNum" />
<result column="comment_num" property="commentNum" />
+ <result column="status" property="status" />
</resultMap>
@@ -48,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,
@@ -59,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
@@ -77,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,
@@ -88,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
@@ -106,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,
@@ -117,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
@@ -146,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,
@@ -157,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
@@ -235,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,
@@ -246,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
@@ -253,7 +267,11 @@
lmk_video LV
LEFT JOIN li_member LM ON LV.author_id = LM.id
WHERE
- LV.delete_flag = 0 AND LV.status = '1' AND LV.author_id = #{query.authorId}
+ LV.delete_flag = 0
+ <if test="!query.authorSelf">
+ AND LV.status = '1'
+ </if>
+ AND LV.author_id = #{query.authorId}
ORDER BY
LV.collect_num DESC
</select>
@@ -266,7 +284,6 @@
LV.video_duration,
LV.video_file_key,
LV.title,
- LV.goods_id,
LV.goods_view_num,
LV.goods_order_num,
LV.recommend,
@@ -277,6 +294,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,4 +310,44 @@
LMC.create_time DESC
</select>
+
+ <!-- 寰俊瑙嗛缂栬緫璇︽儏 -->
+ <resultMap id="WxEditResultMap" type="cn.lili.modules.lmk.domain.vo.WxEditVideoVO">
+ <id column="id" property="id"/>
+ <result column="cover_url" property="coverFileKey" />
+ <result column="video_file_key" property="videoFileKey" />
+ <result column="video_fit" property="videoFit" />
+ <result column="title" property="title" />
+ <result column="video_duration" property="videoDuration" />
+ <result column="goods_id" property="goodsId" />
+ </resultMap>
+
+ <select id="wxDetail" resultMap="WxEditResultMap">
+ 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.weight,
+ LV.audit_pass_time,
+ LV.update_time,
+ LV.video_content_type,
+ LV.video_type,
+ LV.video_imgs,
+ LV.id
+ FROM
+ lmk_video LV
+ WHERE
+ LV.delete_flag = 0 AND LV.id = #{id}
+ </select>
+
</mapper>
--
Gitblit v1.8.0