Bladeren bron

课程转换

zouxuan 2 jaren geleden
bovenliggende
commit
639f4c5b30

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleConvertServiceImpl.java

@@ -224,7 +224,7 @@ public class CourseScheduleConvertServiceImpl implements CourseScheduleConvertSe
         String newCourseIds = courseConvertLog.getNewCourseIds();
         List<Long> courseIdList = Arrays.stream(newCourseIds.split(",")).map(e -> Long.parseLong(e)).collect(Collectors.toList());
         List<CourseSchedule> courseSchedules = courseScheduleService.getDao().findByCourseScheduleIds(courseIdList);
-        if(courseSchedules.stream().anyMatch(e->e.getStatus() == CourseStatusEnum.OVER)){
+        if(courseSchedules.stream().anyMatch(e->e.getStatus() != CourseStatusEnum.NOT_START)){
             throw new BizException("操作失败:有已结束课程");
         }
         //学员课表是否变动