From ad3ac53da1c3a11a96ae62d790aa61a81b9eab91 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 20 三月 2021 18:47:23 +0800 Subject: [PATCH] 完善APP首页顶部标签栏兼容,初步处理推送 --- src/main/java/com/yeshi/buwan/dao/CategoryVideoDao.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/dao/CategoryVideoDao.java b/src/main/java/com/yeshi/buwan/dao/CategoryVideoDao.java index 5aef61c..3eaecd9 100644 --- a/src/main/java/com/yeshi/buwan/dao/CategoryVideoDao.java +++ b/src/main/java/com/yeshi/buwan/dao/CategoryVideoDao.java @@ -1,9 +1,21 @@ package com.yeshi.buwan.dao; +import com.yeshi.buwan.dao.base.BaseDao; +import com.yeshi.buwan.domain.VideoType; import org.springframework.stereotype.Repository; import com.yeshi.buwan.domain.CategoryVideo; + +import java.util.List; + @Repository public class CategoryVideoDao extends BaseDao<CategoryVideo> { + public List<CategoryVideo> listByVideoId(String videoId) { + return list("from CategoryVideo cv where cv.video.id=?", videoId); + } + + public List<CategoryVideo> listByVideoIdAndCategoryId(String videoId, long categoryId) { + return list("from CategoryVideo cv where cv.video.id=? and cv.videoType.id=?", videoId, categoryId); + } } -- Gitblit v1.8.0