From b37275dba6b782bf3bb3817c4504f6cdef1bef7c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 18 三月 2021 18:38:51 +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