|
@@ -335,12 +335,13 @@ public class StudentLessonTrainingDetailServiceImpl extends ServiceImpl<StudentL
|
|
|
}
|
|
|
if ("VIDEO".equals(studentLessonTrainingDetail.getHomeworkType()) && StringUtils.isNotBlank(studentLessonTrainingDetail.getLessonCoursewareId())) {
|
|
|
List<Integer> courseTypeIds = userVipMap.get(studentLessonTrainingDetail.getUserId().intValue());
|
|
|
- if (CollectionUtils.isNotEmpty(courseTypeIds)) {
|
|
|
- if (courseTypeIds.contains(Integer.parseInt(studentLessonTrainingDetail.getLessonCoursewareId()))) {
|
|
|
- studentLessonTrainingDetail.setUseStatus("UNLOCK");
|
|
|
- } else {
|
|
|
- studentLessonTrainingDetail.setUseStatus("LOCK");
|
|
|
- }
|
|
|
+ if (CollectionUtils.isEmpty(courseTypeIds)) {
|
|
|
+ courseTypeIds = new ArrayList<>();
|
|
|
+ }
|
|
|
+ if (courseTypeIds.contains(Integer.parseInt(studentLessonTrainingDetail.getLessonCoursewareId()))) {
|
|
|
+ studentLessonTrainingDetail.setUseStatus("UNLOCK");
|
|
|
+ } else {
|
|
|
+ studentLessonTrainingDetail.setUseStatus("LOCK");
|
|
|
}
|
|
|
} else if ("VIDEO".equals(studentLessonTrainingDetail.getHomeworkType())){
|
|
|
studentLessonTrainingDetail.setUseStatus("UNLOCK");
|