| | |
| | | @Override |
| | | public List<TVLiveChannel> listChannelByCid(String cid, String nameKey, int page, int pageSize) { |
| | | //查询Map |
| | | List<TVLiveCategoryChannelMap> mapList = tvLiveCategoryChannelMapDao.listByCid(cid, (page-1)*pageSize, pageSize); |
| | | List<TVLiveCategoryChannelMap> mapList = tvLiveCategoryChannelMapDao.listByCid(cid, (page - 1) * pageSize, pageSize); |
| | | if (mapList == null || mapList.size() == 0) |
| | | return null; |
| | | List<String> cids = new ArrayList<>(); |
| | |
| | | |
| | | List<TVLiveChannel> resultList = new ArrayList<>(); |
| | | for (TVLiveCategoryChannelMap sc : mapList) { |
| | | resultList.add(map.get(sc.getChannelId())); |
| | | if (map.get(sc.getChannelId()) != null) |
| | | resultList.add(map.get(sc.getChannelId())); |
| | | } |
| | | return resultList; |
| | | } |