|
@@ -4260,6 +4260,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
//修改关联班级老师
|
|
|
List<Integer> collect = courseSchedules.stream().map(e -> e.getClassGroupId()).collect(Collectors.toList());
|
|
|
batchUpdateClassTeacher(collect,teacherId,targetTeacherId);
|
|
|
+ //修改老师考勤
|
|
|
+ Set<Long> collect1 = courseSchedules.stream().map(e -> e.getId()).collect(Collectors.toSet());
|
|
|
+ teacherAttendanceDao.deleteByCourseAndTeacherId(collect1,teacherId);
|
|
|
}
|
|
|
List<CourseSchedule> courseSchedules1 = this.queryNoStartCourseByTeacherId(classGroupIds, teacherId, "TEACHING");
|
|
|
if(courseSchedules1.size() > 0){
|
|
@@ -4269,6 +4272,8 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
e.setTeachingTeacherIdList(teachingTeacherIdList);
|
|
|
});
|
|
|
this.courseAdjust(courseSchedules1);
|
|
|
+ Set<Long> collect1 = courseSchedules1.stream().map(e -> e.getId()).collect(Collectors.toSet());
|
|
|
+ teacherAttendanceDao.deleteByCourseAndTeacherId(collect1,teacherId);
|
|
|
}
|
|
|
}
|
|
|
|