| | |
| | | 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.NumberUtil; |
| | | import com.yeshi.buwan.util.SystemUtil; |
| | | import com.yeshi.buwan.util.video.VideoUtil; |
| | | import net.sf.json.JSONArray; |
| | | import net.sf.json.JSONObject; |
| | | |
| | |
| | | hv.setType(new HomeType(ht)); |
| | | hv.setVideoId(vid); |
| | | hv.setBigPicture(false); |
| | | hv.setFromType(VideoUtil.getVideoFromType(hv.getVideoId())); |
| | | list.add(hv); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/updatehomevideo", method = RequestMethod.POST) |
| | | public void updateHomeVideo(long id, String tag, String picture, String orderby,Boolean bigPicture, PrintWriter out) { |
| | | public void updateHomeVideo(long id, String tag, String picture, String orderby, Boolean bigPicture, PrintWriter out) { |
| | | HomeVideo hv = homeTypeService.getHomeVideoById(id + ""); |
| | | if (hv == null) { |
| | | JSONObject object = new JSONObject(); |