From c1125c45cc9171a1848ef4caa976e77eceea3215 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 02 七月 2025 10:39:34 +0800
Subject: [PATCH] insert 覆盖模式添加购物车
---
framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 105 insertions(+), 6 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..c8a6340 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,14 +1,14 @@
package cn.lili.modules.lmk.mapper;
import cn.lili.modules.lmk.domain.entity.Video;
-import com.baomidou.mybatisplus.core.metadata.IPage;
+import cn.lili.modules.lmk.domain.query.*;
+import cn.lili.modules.lmk.domain.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-import cn.lili.modules.lmk.domain.vo.VideoVO;
-import cn.lili.modules.lmk.domain.form.VideoForm;
-import cn.lili.modules.lmk.domain.query.VideoQuery;
-import java.util.List;
+import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
/**
* 瑙嗛鍐呭 Mapper 鎺ュ彛
@@ -24,11 +24,110 @@
* @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("query") VideoQuery query);
+
+ IPage recommendHealthVideo(IPage page, @Param("query") WxHealthVideoQuery query);
+
+
+ IPage wxKitchenVideoQuery(IPage page, @Param("query") WxKitchenVideoQuery query);
+
+ /**
+ * 鎵归噺鏇存柊瑙嗛鏀惰棌鏁伴噺
+ *
+ * @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);
+
+ /**
+ * 灏忕▼搴�-瑙嗛璇︽儏
+ *
+ * @param id
+ * @return
+ */
+ WxEditVideoVO wxDetail(@Param("id") String id);
+
+ /**
+ * 澶у仴搴疯棰戝垎椤�
+ *
+ * @param page
+ * @param query
+ */
+ IPage healthPage(IPage page, @Param("query") HealthVideoQuery query);
+
+ IPage kitchenPage(IPage page, @Param("query") KitchenVideoQuery query);
+
+ /**
+ * 鑾峰彇瑙嗛鎮寕鍟嗗搧
+ *
+ * @param videoId
+ * @return
+ */
+ List<VideoGoodsDetailVO> getVideoGoods(@Param("id") String videoId);
}
--
Gitblit v1.8.0