| | |
| | | @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)) { |
| | |
| | | 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=") |
| | |
| | | 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=")) |