|
@@ -654,7 +654,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
List<ClassGroupStudentMapper> backClassGroupStudents=classGroupStudentsMap.get(existCourseSchedule.getClassGroupId());
|
|
List<ClassGroupStudentMapper> backClassGroupStudents=classGroupStudentsMap.get(existCourseSchedule.getClassGroupId());
|
|
|
|
|
|
List<Integer> repeatStudentIds = new ArrayList<>();
|
|
List<Integer> repeatStudentIds = new ArrayList<>();
|
|
- if((preClassGroupStudents==null || preClassGroupStudents.size()==0) || (backClassGroupStudents==null || backClassGroupStudents.size()==0)) {
|
|
|
|
|
|
+ if(classGroupStudentsMap.containsKey(newCourseSchedule.getClassGroupId()) && classGroupStudentsMap.containsKey(existCourseSchedule.getClassGroupId())) {
|
|
//当前课程所在班级的学生编号列表
|
|
//当前课程所在班级的学生编号列表
|
|
List<Integer> preClassGroupStudentIds = preClassGroupStudents.stream()
|
|
List<Integer> preClassGroupStudentIds = preClassGroupStudents.stream()
|
|
.map(ClassGroupStudentMapper::getUserId)
|
|
.map(ClassGroupStudentMapper::getUserId)
|