admin
2021-07-30 19533a17aa55fafc70d0a385928e785cb50e1ebc
src/main/java/com/yeshi/buwan/service/imp/RecommendService.java
@@ -33,22 +33,6 @@
   @Resource
   private CategoryContryDao categoryContryDao;
   public BanQuanService getBanQuanService() {
      return banQuanService;
   }
   public void setBanQuanService(BanQuanService banQuanService) {
      this.banQuanService = banQuanService;
   }
   public VideoInfoDao getVideoInfoDao() {
      return videoInfoDao;
   }
   public void setVideoInfoDao(VideoInfoDao videoInfoDao) {
      this.videoInfoDao = videoInfoDao;
   }
   @Cacheable(value = "userCache", key = "'guessLike'+'-'+#videoId+'-'+#detailSystem+'-'+#cachemd5")
   public List<VideoInfo> guessLike(String videoId, String detailSystem, List<Long> resourceList, String cachemd5) {
      String resourceWhere = "";
@@ -57,7 +41,7 @@
      if (resourceWhere.endsWith("or"))
         resourceWhere = resourceWhere.substring(0, resourceWhere.length() - 2);
      videoId = StringUtil.isNullOrEmpty(videoId) ? "" : videoId;
      List<VideoInfo> list = new ArrayList<VideoInfo>();
      List<VideoInfo> list = new ArrayList<>();
      int start = (int) (Math.random() * 100);
      String sql = String.format(
@@ -69,7 +53,7 @@
      for (int i = 0; i < idList.size(); i++) {
         list.add((VideoInfo) videoInfoDao.find(VideoInfo.class, idList.get(i) + ""));
      }
      List<VideoInfo> videoList = new ArrayList<VideoInfo>();
      List<VideoInfo> videoList = new ArrayList<>();
      for (VideoInfo v : list) {
         boolean can = true;
@@ -229,7 +213,7 @@
      } catch (Exception e) {
         e.printStackTrace();
      }
      return new ArrayList<VideoInfo>();
      return new ArrayList<>();
   }
@@ -301,7 +285,7 @@
      } catch (Exception e) {
         e.printStackTrace();
      }
      return new ArrayList<VideoInfo>();
      return new ArrayList<>();
   }
@@ -402,7 +386,7 @@
         e.printStackTrace();
      }
      return new ArrayList<VideoInfo>();
      return new ArrayList<>();
   }
}