From cc1bab39263e90069ccef7139f71b2a4061780d1 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期一, 16 六月 2025 15:29:03 +0800 Subject: [PATCH] 刷视频悬挂商品展示、点击视频商品展示 --- framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java | 93 +++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 86 insertions(+), 7 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 648b106..988a2c4 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,15 +1,14 @@ package cn.lili.modules.lmk.mapper; import cn.lili.modules.lmk.domain.entity.Video; -import cn.lili.modules.lmk.domain.query.ManagerVideoQuery; -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 鎺ュ彛 @@ -45,5 +44,85 @@ * * @return */ - IPage recommendVideo(IPage page); + IPage recommendVideo(IPage page, @Param("query") VideoQuery 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