|
@@ -568,7 +568,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
public boolean batchUpdateCourseSchedule(BatchInsertCoursesDto batchInsertCoursesDto) {
|
|
|
|
|
|
List<CourseSchedule> courseScheduleList = courseScheduleDao.findByCourseScheduleIds(batchInsertCoursesDto.getCourseScheduleIdList());
|
|
|
- List<Integer> classGroupList = courseScheduleList.stream().distinct().map(CourseSchedule::getClassGroupId).collect(Collectors.toList());
|
|
|
+ List<Integer> classGroupList = courseScheduleList.stream().map(CourseSchedule::getClassGroupId).distinct().collect(Collectors.toList());
|
|
|
|
|
|
if (classGroupList == null || classGroupList.size() != 1) {
|
|
|
throw new BizException("修改失败,只支持同一个班级的课程批量调整");
|