admin
2021-01-25 cbc9ffb792e29beddf15dbfa70437bfc40de5baa
src/main/java/com/yeshi/buwan/service/imp/RecommendService.java
@@ -57,7 +57,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 +69,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 +229,7 @@
      } catch (Exception e) {
         e.printStackTrace();
      }
      return new ArrayList<VideoInfo>();
      return new ArrayList<>();
   }
@@ -301,7 +301,7 @@
      } catch (Exception e) {
         e.printStackTrace();
      }
      return new ArrayList<VideoInfo>();
      return new ArrayList<>();
   }
@@ -402,7 +402,7 @@
         e.printStackTrace();
      }
      return new ArrayList<VideoInfo>();
      return new ArrayList<>();
   }
}