Antiloveg пре 8 година
родитељ
комит
545f66267f

+ 2 - 3
src/main/java/com/goafanti/lecture/service/impl/LectureServiceImpl.java

@@ -12,7 +12,6 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;
-import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
 
 import com.goafanti.common.constant.AFTConstants;
@@ -122,7 +121,7 @@ public class LectureServiceImpl extends BaseMybatisDao<LectureMapper> implements
 	}
 
 	@Override
-	@Cacheable(value = "LectureDynamicListCache", key = "'LectureDynamicList:'+#lectureDynamicListCacheKey")
+	//@Cacheable(value = "LectureDynamicListCache", key = "'LectureDynamicList:'+#lectureDynamicListCacheKey")
 	public List<LectureListBo> listDynamic(Integer lectureDynamicListCacheKey) {
 		return lectureMapper.listDynamic();
 	}
@@ -134,7 +133,7 @@ public class LectureServiceImpl extends BaseMybatisDao<LectureMapper> implements
 	}
 
 	@Override
-	@Cacheable(value = "BigShotLectureListCache", key = "'BigShotLectureList:'+#bigShotLectureCacheKey")
+	//@Cacheable(value = "BigShotLectureListCache", key = "'BigShotLectureList:'+#bigShotLectureCacheKey")
 	public List<BigShotLectureListBo> listBigShotLecture(Integer bigShotLectureCacheKey) {
 		return lectureMapper.listBigShotLecture();
 	}

+ 3 - 3
src/main/java/com/goafanti/portal/controller/PortalStarController.java

@@ -15,7 +15,7 @@ import com.goafanti.common.controller.BaseController;
 import com.goafanti.engagedFieldGlossory.service.EngagedFieldGlossoryService;
 import com.goafanti.lecture.bo.LectureListBo;
 import com.goafanti.lecture.service.LectureService;
-import com.goafanti.star.bo.BigShotStarListBo;
+import com.goafanti.star.bo.HotStarListBo;
 import com.goafanti.star.service.StarService;
 import com.goafanti.user.service.UserInterestService;
 
@@ -39,9 +39,9 @@ public class PortalStarController extends BaseController {
 		List<LectureListBo> lectureDynamicList = lectureService
 				.listDynamic(AFTConstants.LECTURE_DYNAMIC_LIST_CACHE_KEY);
 		mv.addObject("lectureDynamicList", lectureDynamicList);
-		List<BigShotStarListBo> starList = starService.listBigShotStar(AFTConstants.BIG_SHOT_STAR_CACHE_KEY);
+		List<HotStarListBo> starList = starService.listStarList();
 		if (null != starList && starList.size() > 0) {
-			for (BigShotStarListBo bo : starList) {
+			for (HotStarListBo bo : starList) {
 				if (StringUtils.isNotBlank(bo.getUid())) {
 					bo.setFansNum(userInterestService.countByToUid(bo.getUid()));
 				}

+ 18 - 0
src/main/java/com/goafanti/star/bo/HotStarListBo.java

@@ -3,5 +3,23 @@ package com.goafanti.star.bo;
 import com.goafanti.user.bo.StarListBo;
 
 public class HotStarListBo extends StarListBo{
+	private Integer	fansNum;
 
+	private String	personPortraitUrl;
+
+	public Integer getFansNum() {
+		return fansNum;
+	}
+
+	public void setFansNum(Integer fansNum) {
+		this.fansNum = fansNum;
+	}
+
+	public String getPersonPortraitUrl() {
+		return personPortraitUrl;
+	}
+
+	public void setPersonPortraitUrl(String personPortraitUrl) {
+		this.personPortraitUrl = personPortraitUrl;
+	}
 }

+ 1 - 2
src/main/java/com/goafanti/star/service/impl/StarServiceImpl.java

@@ -9,7 +9,6 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.cache.annotation.CacheEvict;
-import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
 
 import com.goafanti.common.dao.StarMapper;
@@ -67,7 +66,7 @@ public class StarServiceImpl implements StarService {
 	}
 
 	@Override
-	@Cacheable(value = "BigShotStarListCache", key = "'BigShotStarList:'+#bigShotStarCacheKey")
+	//@Cacheable(value = "BigShotStarListCache", key = "'BigShotStarList:'+#bigShotStarCacheKey")
 	public List<BigShotStarListBo> listBigShotStar(Integer bigShotStarCacheKey) {
 		return starMapper.listBigShotStar();
 	}