From 75f9783d5a70a5f037e3b34dc0e479069e63c0e9 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 17 六月 2025 10:54:15 +0800 Subject: [PATCH] update 修改后台/销售端商品上架 --- framework/src/main/java/cn/lili/modules/lmk/mapper/VideoMapper.java | 95 ++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 89 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 e49d338..ee30dd5 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,17 @@ 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 com.baomidou.mybatisplus.core.mapper.BaseMapper; +import cn.lili.modules.lmk.domain.query.*; +import cn.lili.modules.lmk.domain.vo.CollectTypeNumVO; +import cn.lili.modules.lmk.domain.vo.VideoAccountVO; 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 cn.lili.modules.lmk.domain.vo.WxEditVideoVO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; + +import java.util.List; /** * 瑙嗛鍐呭 Mapper 鎺ュ彛 @@ -39,4 +41,85 @@ * @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); + + /** + * 鎵归噺鏇存柊瑙嗛鏀惰棌鏁伴噺 + * + * @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); } -- Gitblit v1.8.0