From 1cdb060a8aa59b0979f7609db1781805528e76e7 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 25 六月 2025 18:25:42 +0800
Subject: [PATCH] 视频评论数、收藏数通过mq、redis实现

---
 framework/src/main/java/cn/lili/modules/lmk/mapper/VideoCommentMapper.java |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoCommentMapper.java b/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoCommentMapper.java
index 81749f8..d05610e 100644
--- a/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoCommentMapper.java
+++ b/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoCommentMapper.java
@@ -1,6 +1,7 @@
 package cn.lili.modules.lmk.mapper;
 
 import cn.lili.modules.lmk.domain.entity.VideoComment;
+import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import cn.lili.modules.lmk.domain.vo.VideoCommentVO;
@@ -41,10 +42,23 @@
     IPage masterCommentPage(IPage page, @Param("query") VideoCommentQuery query);
 
     /**
-     * 灏忕▼搴忓洖澶嶈瘎璁哄垎椤垫煡璇�
+     * 灏忕▼搴忓洖澶嶈瘎璁�
      *
-     * @param page
      * @param query
      */
     IPage replyCommentPage(IPage page, @Param("query") VideoCommentQuery query);
+
+    /**
+     * 缁熻姣忎釜瑙嗛鐨勮瘎璁烘暟閲�
+     *
+     * @return
+     */
+    List<CollectTypeNumVO> countNumGroupByVideo();
+
+    /**
+     * 鎵归噺鏇存柊瑙嗛璇勮鐐硅禐鏁�
+     *
+     * @param chunk
+     */
+    void updateCommentThumbsUpNumBatch(@Param("list") List<CollectTypeNumVO> chunk);
 }

--
Gitblit v1.8.0