From 817c7de04cb6b74164a42ed0e6050ae5b91b0ef1 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 29 五月 2025 18:14:00 +0800
Subject: [PATCH] 视频评论增加被回复人头像字段
---
framework/src/main/resources/mapper/lmk/VideoMapper.xml | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/framework/src/main/resources/mapper/lmk/VideoMapper.xml b/framework/src/main/resources/mapper/lmk/VideoMapper.xml
index 12e953f..be18336 100644
--- a/framework/src/main/resources/mapper/lmk/VideoMapper.xml
+++ b/framework/src/main/resources/mapper/lmk/VideoMapper.xml
@@ -172,7 +172,7 @@
UPDATE lmk_video
SET collect_num = CASE id
<foreach collection="list" item="video">
- WHEN #{video.id} THEN #{video.collectNum}
+ WHEN #{video.id} THEN #{video.countNum}
</foreach>
ELSE collect_num
END
@@ -182,4 +182,19 @@
</foreach>
</update>
+
+ <update id="updateCommentNumBatch">
+ UPDATE lmk_video
+ SET comment_num = CASE id
+ <foreach collection="list" item="video">
+ WHEN #{video.id} THEN #{video.countNum}
+ </foreach>
+ ELSE comment_num
+ END
+ WHERE id IN
+ <foreach collection="list" item="video" open="(" separator="," close=")">
+ #{video.id}
+ </foreach>
+ </update>
+
</mapper>
--
Gitblit v1.8.0