| | |
| | | package com.yeshi.buwan.service.imp.news; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yeshi.buwan.dao.news.FoundNewsDao; |
| | | import com.yeshi.buwan.dao.news.NewsDao; |
| | | import com.yeshi.buwan.dao.news.NewsImageDao; |
| | | import com.yeshi.buwan.dao.news.NewsTypeContentDao; |
| | | import com.yeshi.buwan.dao.news.NewsTypeDao; |
| | | import com.yeshi.buwan.dao.news.SuperFoundNewsDao; |
| | | import com.yeshi.buwan.domain.news.FoundNews; |
| | |
| | | import com.yeshi.buwan.domain.news.NewsType; |
| | | import com.yeshi.buwan.domain.news.SuperFoundNews; |
| | | import com.yeshi.buwan.util.Constant; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class NewsService { |
| | |
| | | @Resource |
| | | private NewsTypeDao newsTypeDao; |
| | | @Resource |
| | | private NewsImageDao newsImageDao; |
| | | @Resource |
| | | private NewsTypeContentDao newsTypeContentDao; |
| | | @Resource |
| | | private FoundNewsDao foundNewsDao; |
| | | @Resource |
| | | private SuperFoundNewsDao superFoundNewsDao; |
| | | |
| | | public FoundNewsDao getFoundNewsDao() { |
| | | return foundNewsDao; |
| | | } |
| | | |
| | | public void setFoundNewsDao(FoundNewsDao foundNewsDao) { |
| | | this.foundNewsDao = foundNewsDao; |
| | | } |
| | | |
| | | public NewsDao getNewsDao() { |
| | | return newsDao; |
| | | } |
| | | |
| | | public void setNewsDao(NewsDao newsDao) { |
| | | this.newsDao = newsDao; |
| | | } |
| | | |
| | | public NewsTypeDao getNewsTypeDao() { |
| | | return newsTypeDao; |
| | | } |
| | | |
| | | public void setNewsTypeDao(NewsTypeDao newsTypeDao) { |
| | | this.newsTypeDao = newsTypeDao; |
| | | } |
| | | |
| | | public NewsImageDao getNewsImageDao() { |
| | | return newsImageDao; |
| | | } |
| | | |
| | | public void setNewsImageDao(NewsImageDao newsImageDao) { |
| | | this.newsImageDao = newsImageDao; |
| | | } |
| | | |
| | | public NewsTypeContentDao getNewsTypeContentDao() { |
| | | return newsTypeContentDao; |
| | | } |
| | | |
| | | public void setNewsTypeContentDao(NewsTypeContentDao newsTypeContentDao) { |
| | | this.newsTypeContentDao = newsTypeContentDao; |
| | | } |
| | | |
| | | // 获取发现页面的图文数据 |
| | | @Cacheable(value = "foundCache",key="'getNewsOnMain'+'-'+#detailSystemId") |