| | |
| | | |
| | | import com.yeshi.buwan.domain.recommend.HomeRecommendSpecial; |
| | | import com.yeshi.buwan.service.inter.recommend.HomeRecommendSpecialService; |
| | | import com.yeshi.buwan.service.inter.recommend.HomeVideoService; |
| | | import com.yeshi.buwan.util.SystemUtil; |
| | | import net.sf.json.JSONArray; |
| | | import net.sf.json.JSONObject; |
| | |
| | | |
| | | @Resource |
| | | private HomeTypeService homeTypeService; |
| | | |
| | | @Resource |
| | | private HomeVideoService homeVideoService; |
| | | |
| | | @Resource |
| | | private HomeRecommendSpecialService homeRecommendSpecialService; |
| | |
| | | hv.setTag(tag); |
| | | } |
| | | hv.setType(new HomeType(ht)); |
| | | hv.setVideo(new VideoInfo(vid)); |
| | | hv.setVideoId(vid); |
| | | hv.setBigPicture(false); |
| | | list.add(hv); |
| | | } |
| | |
| | | @RequestMapping(value = "/gethomevideolist", method = RequestMethod.POST) |
| | | public void getHomeVideoList(long id, int page, String key, PrintWriter out) { |
| | | key = StringUtil.isNullOrEmpty(key) ? "" : key; |
| | | List<HomeVideo> list = homeTypeService.getHomeVideoList(id + "", key, page); |
| | | List<HomeVideo> list = homeVideoService.getHomeVideoList(id + "", key, page); |
| | | for (HomeVideo homeVideo : list) { |
| | | homeVideo.setType(null); |
| | | homeVideo.setAdmin(null); |
| | | } |
| | | long count = homeTypeService.getHomeVideoListCount(id + "", key); |
| | | long count = homeVideoService.getHomeVideoListCount(id + "", key); |
| | | PageEntity pe = new PageEntity(); |
| | | pe.setPageIndex(page); |
| | | pe.setPageSize(Constant.pageCount); |