From f4d3dd1e4964297648f1b7bb80470d70f1b8fcec Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 04 六月 2025 11:41:35 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev
---
framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java | 75 +++++++++++++++++++++++++++++++++++++
1 files changed, 74 insertions(+), 1 deletions(-)
diff --git a/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java b/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java
index 33a8bd5..cbb9fe8 100644
--- a/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java
+++ b/framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java
@@ -1,6 +1,11 @@
package cn.lili.modules.lmk.mapper;
import cn.lili.modules.lmk.domain.entity.Video;
+import cn.lili.modules.lmk.domain.query.AuthorVideoQuery;
+import cn.lili.modules.lmk.domain.query.ManagerVideoQuery;
+import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO;
+import cn.lili.modules.lmk.domain.vo.VideoAccountVO;
+import cn.lili.modules.lmk.domain.vo.WxVideoVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.lili.modules.lmk.domain.vo.VideoVO;
@@ -24,11 +29,79 @@
* @param id
* @return
*/
- VideoVO getById(Integer id);
+ VideoVO getById(String id);
/**
* 鍒嗛〉
*/
IPage getPage(IPage page, @Param("query") VideoQuery query);
+ /**
+ * 绠$悊绔垎椤�
+ *
+ * @param page
+ * @param query
+ */
+ IPage managerPage(IPage page, @Param("query") ManagerVideoQuery query);
+
+ /**
+ * 鏌ュ嚭5涓帹鑽愯棰�
+ *
+ * @return
+ */
+ IPage recommendVideo(IPage page);
+
+ /**
+ * 鎵归噺鏇存柊瑙嗛鏀惰棌鏁伴噺
+ *
+ * @param numList
+ */
+ void updateCollectNumBatch(@Param("list") List<CollectTypeNumVO> numList);
+
+ /**
+ * 鎵归噺鏇存柊瑙嗛璇勮鏁伴噺
+ *
+ * @param numList
+ */
+ void updateCommentNumBatch(@Param("list") List<CollectTypeNumVO> numList);
+
+ /**
+ * 瑙嗛涓婚〉浣滆�呬俊鎭�
+ *
+ * @param authorId
+ * @return
+ */
+ VideoAccountVO getAuthorInfo(@Param("authorId") String authorId, @Param("currentUserId") String currentUserId);
+
+ /**
+ * 鑾峰彇浣滆�呯殑鎵�鏈夎棰慽d
+ *
+ * @param authorId
+ * @return
+ */
+ List<String> getVideoIdsByAuthor(@Param("authorId") String authorId);
+
+ /**
+ * 鑾峰彇浣滆�呮墍鏈夎棰戠殑鏀惰棌鏁颁箣鍜�
+ *
+ * @param videoIds
+ * @return
+ */
+ Long countAuthorVideoCollectNum(@Param("videoIds") List<String> videoIds);
+
+ /**
+ * 鑾峰彇瑙嗛涓婚〉-浣滆�呰棰戠殑鍒嗛〉
+ *
+ * @param page
+ * @param query
+ */
+ IPage getAuthorVideoPage(IPage page, @Param("query") AuthorVideoQuery query);
+
+ /**
+ * 鑾峰彇瑙嗛涓婚〉浣滆�呮敹钘忕殑瑙嗛鍒嗛〉
+ *
+ * @param page
+ * @param query
+ */
+ IPage getAuthorCollectVideoPage(IPage page, @Param("query") AuthorVideoQuery query);
}
--
Gitblit v1.8.0