admin
2021-03-02 4011b8d0b377af33e2bc435f7726329630d706cb
src/main/java/com/yeshi/buwan/service/imp/juhe/SoHuService.java
@@ -14,8 +14,8 @@
import org.springframework.stereotype.Service;
import com.yeshi.buwan.dao.CategoryVideoDao;
import com.yeshi.buwan.dao.juhe.SoHuAlbumDao;
import com.yeshi.buwan.dao.juhe.SoHuVideoDao;
import com.yeshi.buwan.dao.juhe.sohu.SoHuAlbumDao;
import com.yeshi.buwan.dao.juhe.sohu.SoHuVideoDao;
import com.yeshi.buwan.domain.CategoryVideo;
import com.yeshi.buwan.domain.ResourceVideo;
import com.yeshi.buwan.domain.VideoDetailInfo;
@@ -43,38 +43,6 @@
   private PushService pushService;
   @Resource
   private CategoryVideoDao categoryVideoDao;
   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 SoHuVideoDao getSoHuVideoDao() {
      return soHuVideoDao;
   }
   public void setSoHuVideoDao(SoHuVideoDao soHuVideoDao) {
      this.soHuVideoDao = soHuVideoDao;
   }
   public SoHuAlbumDao getSoHuAlbumDao() {
      return soHuAlbumDao;
   }
   public void setSoHuAlbumDao(SoHuAlbumDao soHuAlbumDao) {
      this.soHuAlbumDao = soHuAlbumDao;
   }
   @SuppressWarnings("unchecked")
   public String addAlbum(final SoHuAlbum album) {
@@ -267,7 +235,7 @@
   }
   public List<VideoType> getVideoTypeList(SoHuAlbum sa) {
      List<VideoType> list = new ArrayList<VideoType>();
      List<VideoType> list = new ArrayList<>();
      String cateCode = sa.getCate_code();
      String[] ca = cateCode.split(";");
      for (int i = 1; i < ca.length; i++) {
@@ -324,10 +292,10 @@
   }
   @SuppressWarnings("unchecked")
   public List<VideoDetailInfo> getVideoDetailList(final String videoid) {
   public List<VideoDetailInfo> getVideoDetailList(final String videoid,int page,int pageSize) {
      return (List<VideoDetailInfo>) soHuAlbumDao.excute(new HibernateCallback<List<VideoDetailInfo>>() {
         public List<VideoDetailInfo> doInHibernate(Session session) throws HibernateException {
            List<VideoDetailInfo> detailList = new ArrayList<VideoDetailInfo>();
            List<VideoDetailInfo> detailList = new ArrayList<>();
            try {
               List<SoHuAlbum> list = session.createQuery("select vs.album from VideoSoHu vs where vs.video.id=?")
                     .setParameter(0, videoid).list();
@@ -358,7 +326,7 @@
   public VideoDetailInfo getLatestVideoDetail(final String videoid) {
      return (VideoDetailInfo) soHuAlbumDao.excute(new HibernateCallback<VideoDetailInfo>() {
         public VideoDetailInfo doInHibernate(Session session) throws HibernateException {
            List<VideoDetailInfo> detailList = new ArrayList<VideoDetailInfo>();
            List<VideoDetailInfo> detailList = new ArrayList<>();
            try {
               List<SoHuAlbum> list = session.createQuery("select vs.album from VideoSoHu vs where vs.video.id=?")
                     .setParameter(0, videoid).list();