| | |
| | | return videoInfoDao.find(VideoInfo.class, id); |
| | | } |
| | | |
| | | |
| | | public List<VideoInfo> getVideoInfoList(List<String> ids) { |
| | | if (ids == null || ids.size() == 0) |
| | | return null; |
| | | List<VideoInfo> list = videoInfoDao.listByVideoIds(ids); |
| | | Map<String, VideoInfo> map = new HashMap<>(); |
| | | for (VideoInfo vi : list) { |
| | | map.put(vi.getId(), vi); |
| | | } |
| | | list.clear(); |
| | | for (String id : ids) { |
| | | list.add(map.get(id)); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | public List<VideoInfo> getVideoListByClass(int type, int page) { |
| | | String types[] = classServcie.getChildrenType(type); |
| | | String wheres = ""; |