admin
2021-03-18 b37275dba6b782bf3bb3817c4504f6cdef1bef7c
src/main/java/com/yeshi/buwan/service/imp/CollectionService.java
@@ -30,30 +30,14 @@
   @Resource
   private VideoInfoDao videoInfoDao;
   public VideoInfoDao getVideoInfoDao() {
      return videoInfoDao;
   }
   public void setVideoInfoDao(VideoInfoDao videoInfoDao) {
      this.videoInfoDao = videoInfoDao;
   }
   public CollectionDao getCollectionDao() {
      return collectionDao;
   }
   public void setCollectionDao(CollectionDao collectionDao) {
      this.collectionDao = collectionDao;
   }
   @SuppressWarnings("rawtypes")
   @Cacheable(value = "userCache", key = "'getCollectVideo'+'-'+#uid+'-'+#page")
   public List<VideoInfo> getCollectVideo(String uid, String loginUid, int page) {
      List<VideoInfo> videoList;
      List<Collection> list;
      videoList = new ArrayList<VideoInfo>();
      list = new ArrayList<Collection>();
      videoList = new ArrayList<>();
      list = new ArrayList<>();
      List li = null;
      if (!StringUtil.isNullOrEmpty(loginUid)) {
@@ -127,7 +111,7 @@
            boolean s = false;
            try {
               session.getTransaction().begin();
               List<String> stList = new ArrayList<String>();
               List<String> stList = new ArrayList<>();
               List list = session
                     .createSQLQuery((new StringBuilder("select id from wk_video_collection c where c.uid="))
                           .append(uid).append(" and c.videoid=").append(videoId).append(" and c.thirdtype=")
@@ -175,7 +159,7 @@
      boolean s = false;
      try {
         List<String> stList = new ArrayList<String>();
         List<String> stList = new ArrayList<>();
         List list;
         if (StringUtil.isNullOrEmpty(loginUid)) {
            list = collectionDao.sqlList((new StringBuilder("select id from wk_video_collection c where c.uid="))