|
@@ -37,23 +37,23 @@ public interface VideoPostMapper extends BaseMapper<VideoPost> {
|
|
|
|
|
|
|
|
/* 根据条件分页获取 */
|
|
/* 根据条件分页获取 */
|
|
|
int countByCriteria(VideoQuery videoQuery);
|
|
int countByCriteria(VideoQuery videoQuery);
|
|
|
- List<VideoPost> findVideoPostByPage(Page page, VideoQuery videoQuery);
|
|
|
|
|
- List<VideoPostCard> findVideoCardByPage(Page page, VideoQuery videoQuery);
|
|
|
|
|
|
|
+ List<VideoPost> findVideoPostByPage(@Param("page") Page page, @Param("videoQuery") VideoQuery videoQuery);
|
|
|
|
|
+ List<VideoPostCard> findVideoCardByPage(@Param("page") Page page, @Param("videoQuery") VideoQuery videoQuery);
|
|
|
|
|
|
|
|
int countAdminVideo(VideoQuery videoQuery);
|
|
int countAdminVideo(VideoQuery videoQuery);
|
|
|
- List<VideoPost> findAdminVideoByPage(Page page, VideoQuery videoQuery);
|
|
|
|
|
|
|
+ List<VideoPost> findAdminVideoByPage(@Param("page") Page page, @Param("videoQuery") VideoQuery videoQuery);
|
|
|
|
|
|
|
|
List<Integer> countByCriteriaAndUserGroup(VideoQuery videoQuery);
|
|
List<Integer> countByCriteriaAndUserGroup(VideoQuery videoQuery);
|
|
|
- List<VideoPostCard> findCriteriaAndUserGroupByPage(Page page, VideoQuery videoQuery);
|
|
|
|
|
|
|
+ List<VideoPostCard> findCriteriaAndUserGroupByPage(@Param("page") Page page, @Param("videoQuery") VideoQuery videoQuery);
|
|
|
List<VideoPostCard> findByNextVideos(@Param("videoQuery") VideoQuery videoQuery, @Param("publishAt") LocalDateTime publishAt);
|
|
List<VideoPostCard> findByNextVideos(@Param("videoQuery") VideoQuery videoQuery, @Param("publishAt") LocalDateTime publishAt);
|
|
|
|
|
|
|
|
VideoPost findByVideoId(String videoId);
|
|
VideoPost findByVideoId(String videoId);
|
|
|
VideoDetail findVideoPostDetail(VideoQuery videoQuery);
|
|
VideoDetail findVideoPostDetail(VideoQuery videoQuery);
|
|
|
|
|
|
|
|
List<VideoPostCard> findVideoCardByVideoIds(List<String> videoIds);
|
|
List<VideoPostCard> findVideoCardByVideoIds(List<String> videoIds);
|
|
|
- List<VideoPostCard> findByUserIds(List<Long> userIds, int pageSize, int nextId);
|
|
|
|
|
|
|
+ List<VideoPostCard> findByUserIds(@Param("userIds") List<Long> userIds, @Param("pageSize") int pageSize, @Param("nextId") int nextId);
|
|
|
int countBySearchCriteria(SearchCriteria searchCriteria);
|
|
int countBySearchCriteria(SearchCriteria searchCriteria);
|
|
|
- List<VideoPost> findSearchCriteriaByPage(Page page, SearchCriteria searchCriteria);
|
|
|
|
|
|
|
+ List<VideoPost> findSearchCriteriaByPage(@Param("page") Page page, @Param("searchCriteria") SearchCriteria searchCriteria);
|
|
|
List<VideoPost> findAllById(int pageSize, int nextId);
|
|
List<VideoPost> findAllById(int pageSize, int nextId);
|
|
|
@Deprecated
|
|
@Deprecated
|
|
|
List<BannerVideo> findBannerVideos(List<String> videoIds);
|
|
List<BannerVideo> findBannerVideos(List<String> videoIds);
|
|
@@ -61,7 +61,7 @@ public interface VideoPostMapper extends BaseMapper<VideoPost> {
|
|
|
List<GroupCount> findPublishByVideo();
|
|
List<GroupCount> findPublishByVideo();
|
|
|
List<GroupCount> findPublishByImage();
|
|
List<GroupCount> findPublishByImage();
|
|
|
List<GroupCount> findGroupByCategoryId();
|
|
List<GroupCount> findGroupByCategoryId();
|
|
|
- List<String> findRandomVideoIds(List<Integer> scopes, int size);
|
|
|
|
|
|
|
+ List<String> findRandomVideoIds(@Param("scopes") List<Integer> scopes, @Param("size") int size);
|
|
|
List<String> findShortVideo(List<Integer> scopes);
|
|
List<String> findShortVideo(List<Integer> scopes);
|
|
|
|
|
|
|
|
int countDurationLt(int duration);
|
|
int countDurationLt(int duration);
|