From f788607ff771a47bc60d6a86e00b3433c40f3d2c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 24 九月 2021 15:22:03 +0800
Subject: [PATCH] 接入视频直播

---
 src/main/java/com/yeshi/buwan/service/imp/CollectionService.java |   24 ++++--------------------
 1 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/service/imp/CollectionService.java b/src/main/java/com/yeshi/buwan/service/imp/CollectionService.java
index b27f0ca..5274eb5 100644
--- a/src/main/java/com/yeshi/buwan/service/imp/CollectionService.java
+++ b/src/main/java/com/yeshi/buwan/service/imp/CollectionService.java
@@ -30,30 +30,14 @@
 	@Resource
 	private VideoInfoDao videoInfoDao;
 
-	public VideoInfoDao getVideoInfoDao() {
-		return videoInfoDao;
-	}
-
-	public void setVideoInfoDao(VideoInfoDao videoInfoDao) {
-		this.videoInfoDao = videoInfoDao;
-	}
-
-	public CollectionDao getCollectionDao() {
-		return collectionDao;
-	}
-
-	public void setCollectionDao(CollectionDao collectionDao) {
-		this.collectionDao = collectionDao;
-	}
-
 	@SuppressWarnings("rawtypes")
 	@Cacheable(value = "userCache", key = "'getCollectVideo'+'-'+#uid+'-'+#page")
 	public List<VideoInfo> getCollectVideo(String uid, String loginUid, int page) {
 		List<VideoInfo> videoList;
 		List<Collection> list;
 
-		videoList = new ArrayList<VideoInfo>();
-		list = new ArrayList<Collection>();
+		videoList = new ArrayList<>();
+		list = new ArrayList<>();
 		List li = null;
 
 		if (!StringUtil.isNullOrEmpty(loginUid)) {
@@ -127,7 +111,7 @@
 				boolean s = false;
 				try {
 					session.getTransaction().begin();
-					List<String> stList = new ArrayList<String>();
+					List<String> stList = new ArrayList<>();
 					List list = session
 							.createSQLQuery((new StringBuilder("select id from wk_video_collection c where c.uid="))
 									.append(uid).append(" and c.videoid=").append(videoId).append(" and c.thirdtype=")
@@ -175,7 +159,7 @@
 		boolean s = false;
 
 		try {
-			List<String> stList = new ArrayList<String>();
+			List<String> stList = new ArrayList<>();
 			List list;
 			if (StringUtil.isNullOrEmpty(loginUid)) {
 				list = collectionDao.sqlList((new StringBuilder("select id from wk_video_collection c where c.uid="))

--
Gitblit v1.8.0