| | |
| | | if (collect.size() > 0) { |
| | | benefitsVideosQueryWrapper.notIn("id", collect); |
| | | } |
| | | List<BenefitsVideos> list1 = this.list(benefitsVideosQueryWrapper.orderByDesc("insertTime").last(" limit 0, 4")); |
| | | List<BenefitsVideos> list1 = this.list(benefitsVideosQueryWrapper.eq("state",1).orderByDesc("insertTime").last(" limit 0, 4")); |
| | | List<BenefitsVideosListVo> lists = new ArrayList<>(); |
| | | for (BenefitsVideos benefitsVideos : list1) { |
| | | if (benefitsVideos.getState()==1) { |
| | |
| | | List<Course> courses = courseClient.queryCourseByName(search); |
| | | ids = courses.stream().map(Course::getId).collect(Collectors.toList()); |
| | | } |
| | | int offset = (pageNo - 1) * pageSize; |
| | | int limit = pageSize; |
| | | |
| | | List<Map<String, Object>> benefitsVideos = this.baseMapper.queryBenefitsVideosList(uid, classificationId, ids, pageSize, pageNo); |
| | | |
| | | List<Map<String, Object>> benefitsVideos = this.baseMapper.queryBenefitsVideosList(uid, classificationId, ids, offset, limit); |
| | | List<BenefitsVideosListVo> lists = new ArrayList<>(); |
| | | for (Map<String, Object> benefitsVideo : benefitsVideos) { |
| | | Integer id = Integer.valueOf(benefitsVideo.get("id").toString()); |