| | |
| | | import com.yeshi.buwan.domain.VideoResource; |
| | | import com.yeshi.buwan.domain.VideoType; |
| | | import com.yeshi.buwan.domain.push.VideoPushHistory; |
| | | import com.yeshi.buwan.iqiyi.entity.IqiyiAlbum; |
| | | import com.yeshi.buwan.iqiyi.entity.IqiyiVideoInfo; |
| | | import com.yeshi.buwan.iqiyi.entity.VideoIqiyi; |
| | | import com.yeshi.buwan.iqiyi.util.IqiyiUtil; |
| | | import com.yeshi.buwan.videos.iqiyi.entity.IqiyiAlbum; |
| | | import com.yeshi.buwan.videos.iqiyi.entity.IqiyiVideoInfo; |
| | | import com.yeshi.buwan.videos.iqiyi.entity.VideoIqiyi; |
| | | import com.yeshi.buwan.videos.iqiyi.util.IqiyiUtil; |
| | | import com.yeshi.buwan.log.LogHelper; |
| | | import com.yeshi.buwan.service.imp.StatisticsService; |
| | | import com.yeshi.buwan.service.imp.push.PushService; |
| | |
| | | @Resource |
| | | private ResourceVideoDao resourceVideoDao; |
| | | |
| | | public PushService getPushService() { |
| | | return pushService; |
| | | } |
| | | |
| | | public void setPushService(PushService pushService) { |
| | | this.pushService = pushService; |
| | | } |
| | | |
| | | public StatisticsService getStatisticsService() { |
| | | return statisticsService; |
| | | } |
| | | |
| | | public void setStatisticsService(StatisticsService statisticsService) { |
| | | this.statisticsService = statisticsService; |
| | | } |
| | | |
| | | public VideoIqiyiDao getVideoIqiyiDao() { |
| | | return videoIqiyiDao; |
| | | } |
| | | |
| | | public void setVideoIqiyiDao(VideoIqiyiDao videoIqiyiDao) { |
| | | this.videoIqiyiDao = videoIqiyiDao; |
| | | } |
| | | |
| | | public IqiyiVideoInfoDao getIqiyiVideoInfoDao() { |
| | | return iqiyiVideoInfoDao; |
| | | } |
| | | |
| | | public void setIqiyiVideoInfoDao(IqiyiVideoInfoDao iqiyiVideoInfoDao) { |
| | | this.iqiyiVideoInfoDao = iqiyiVideoInfoDao; |
| | | } |
| | | |
| | | static { |
| | | // PropertyConfigurator.configure(".\\src\\log4j.properties"); |
| | |
| | | logger.error("saveVideoInfo"); |
| | | logger.error(e.getMessage()); |
| | | e.printStackTrace(); |
| | | if (session.getTransaction().isActive()) |
| | | session.getTransaction().rollback(); |
| | | } |
| | | return null; |
| | |
| | | list.get(0).getVideo().setTag(tag); |
| | | if (ilist != null && ilist.size() > 0) { |
| | | updateVideo = list.get(0).getVideo(); |
| | | List<VideoDetailInfo> detailList = new ArrayList<VideoDetailInfo>(); |
| | | List<VideoDetailInfo> detailList = new ArrayList<>(); |
| | | detailList.add(convertVideoinfoToDetail(album, ilist.get(0))); |
| | | updateVideo.setVideoDetailList(detailList); |
| | | } |
| | |
| | | } catch (Exception e) { |
| | | logger.error("insertAlbumToVideoInfo"); |
| | | logger.error(e.getMessage()); |
| | | if (session.getTransaction().isActive()) |
| | | session.getTransaction().rollback(); |
| | | e.printStackTrace(); |
| | | } |