|
@@ -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("操作失败:有已结束课程");
|
|
|
}
|
|
|
//学员课表是否变动
|