|  | @@ -60,6 +60,9 @@ public class StudentLessonTrainingDetailServiceImpl extends ServiceImpl<StudentL
 | 
	
		
			
				|  |  |      private MemberRankCategoryMapperService memberRankCategoryMapperService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  | +    private LessonCoursewareService lessonCoursewareService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  |      private MemberRankCourseTypeMapperService memberRankCourseTypeMapperService;
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 查询详情
 | 
	
	
		
			
				|  | @@ -310,7 +313,7 @@ public class StudentLessonTrainingDetailServiceImpl extends ServiceImpl<StudentL
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          // 判断课件
 | 
	
		
			
				|  |  | -        Map<Integer, List<Integer>> userVipMap = Maps.newConcurrentMap();
 | 
	
		
			
				|  |  | +        Map<Integer, List<Long>> userVipMap = Maps.newConcurrentMap();
 | 
	
		
			
				|  |  |          studentLessonTrainingDetails.parallelStream().forEach(o -> {
 | 
	
		
			
				|  |  |              if (o.getUserId() == null) {
 | 
	
		
			
				|  |  |                  return;
 | 
	
	
		
			
				|  | @@ -326,19 +329,21 @@ public class StudentLessonTrainingDetailServiceImpl extends ServiceImpl<StudentL
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              List<Integer> categoryIds = courseTypeMapperList.stream().map(MemberRankCourseTypeMapper::getCourseType)
 | 
	
		
			
				|  |  |                  .distinct().map(Integer::parseInt).collect(Collectors.toList());
 | 
	
		
			
				|  |  | +            // 本地的课件ID 换远程ID
 | 
	
		
			
				|  |  | +            List<Long> lessonIds =  lessonCoursewareService.getByLessonCoursewareIds(categoryIds).stream().map(LessonCourseware::getLessonCourseId).distinct().collect(Collectors.toList());
 | 
	
		
			
				|  |  |              // 设置用户VIP可查看曲目分类
 | 
	
		
			
				|  |  | -            userVipMap.put(o.getUserId().intValue(), categoryIds);
 | 
	
		
			
				|  |  | +            userVipMap.put(o.getUserId().intValue(), lessonIds);
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |          for (StudentLessonTrainingDetailWrapper.StudentLessonTrainingDetail studentLessonTrainingDetail : studentLessonTrainingDetails) {
 | 
	
		
			
				|  |  |              if (studentLessonTrainingDetail.getUserId() == null) {
 | 
	
		
			
				|  |  |                  return;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if ("VIDEO".equals(studentLessonTrainingDetail.getHomeworkType()) && StringUtils.isNotBlank(studentLessonTrainingDetail.getLessonCoursewareId())) {
 | 
	
		
			
				|  |  | -                List<Integer> courseTypeIds = userVipMap.get(studentLessonTrainingDetail.getUserId().intValue());
 | 
	
		
			
				|  |  | +                List<Long> courseTypeIds = userVipMap.get(studentLessonTrainingDetail.getUserId().intValue());
 | 
	
		
			
				|  |  |                  if (CollectionUtils.isEmpty(courseTypeIds)) {
 | 
	
		
			
				|  |  |                      courseTypeIds = new ArrayList<>();
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                if (courseTypeIds.contains(Integer.parseInt(studentLessonTrainingDetail.getLessonCoursewareId()))) {
 | 
	
		
			
				|  |  | +                if (courseTypeIds.contains(Long.parseLong(studentLessonTrainingDetail.getLessonCoursewareId()))) {
 | 
	
		
			
				|  |  |                      studentLessonTrainingDetail.setUseStatus("UNLOCK");
 | 
	
		
			
				|  |  |                  } else {
 | 
	
		
			
				|  |  |                      studentLessonTrainingDetail.setUseStatus("LOCK");
 |