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/service/imp/AttentionService.java |   23 +++--------------------
 1 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/service/imp/AttentionService.java b/src/main/java/com/yeshi/buwan/service/imp/AttentionService.java
index 831477f..3153fd4 100644
--- a/src/main/java/com/yeshi/buwan/service/imp/AttentionService.java
+++ b/src/main/java/com/yeshi/buwan/service/imp/AttentionService.java
@@ -17,9 +17,9 @@
 import org.springframework.stereotype.Service;
 
 import com.yeshi.buwan.dao.AttentionDao;
-import com.yeshi.buwan.dao.LoginUserDao;
+import com.yeshi.buwan.dao.user.LoginUserDao;
 import com.yeshi.buwan.domain.Attention;
-import com.yeshi.buwan.domain.LoginUser;
+import com.yeshi.buwan.domain.user.LoginUser;
 import com.yeshi.buwan.domain.VideoDetailInfo;
 import com.yeshi.buwan.domain.VideoResource;
 import com.yeshi.buwan.util.Constant;
@@ -34,22 +34,6 @@
 	private VideoDetailUtil videoDetailUtil;
 	@Resource
 	private LoginUserDao loginUserDao;
-
-	public VideoDetailUtil getVideoDetailUtil() {
-		return videoDetailUtil;
-	}
-
-	public void setVideoDetailUtil(VideoDetailUtil videoDetailUtil) {
-		this.videoDetailUtil = videoDetailUtil;
-	}
-
-	public AttentionDao getAttentionDao() {
-		return attentionDao;
-	}
-
-	public void setAttentionDao(AttentionDao attentionDao) {
-		this.attentionDao = attentionDao;
-	}
 
 	@SuppressWarnings("unchecked")
 	@Caching(evict = {
@@ -153,7 +137,6 @@
 				} catch (Exception e) {
 					isS = false;
 					e.printStackTrace();
-					if (session.getTransaction().isActive())
 						session.getTransaction().rollback();
 				}
 				return isS;
@@ -205,7 +188,7 @@
 			if (map.get(at.getId()) != null) {
 				VideoResource vr = (VideoResource) map.get(at.getId());
 				VideoDetailInfo detail = videoDetailUtil.getLatestVideoDetail(at.getVideoInfo().getId(), vr);
-				List<VideoDetailInfo> detailInfos = new ArrayList<VideoDetailInfo>();
+				List<VideoDetailInfo> detailInfos = new ArrayList<>();
 				detailInfos.add(detail);
 				at.getVideoInfo().setVideoDetailList(detailInfos);
 			}

--
Gitblit v1.8.0