|
@@ -354,13 +354,12 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
results.add(studentExtracurricularExercisesSituation);
|
|
|
}else{
|
|
|
Map<Integer, List<StudentServeCourseDto>> teacherCourseMap = weekCourseInfo.stream().collect(Collectors.groupingBy(StudentServeCourseDto::getActualTeacherId));
|
|
|
- Map<Integer, Set<Long>> teacherServiceCourseIdMap = new HashMap<>();
|
|
|
for (Map.Entry<Integer, List<StudentServeCourseDto>> teacherCourseMapEntry : teacherCourseMap.entrySet()) {
|
|
|
StudentServeCourseDto courseInfo = teacherCourseMapEntry.getValue().stream().min(Comparator.comparing(StudentServeCourseDto::getCourseStartTime)).get();
|
|
|
StudentExtracurricularExercisesSituation studentExtracurricularExercisesSituation;
|
|
|
if(TeachModeEnum.OFFLINE.equals(courseInfo.getTeachMode())){
|
|
|
studentExtracurricularExercisesSituation=new StudentExtracurricularExercisesSituation(studentCourseMapEntry.getKey(),
|
|
|
- futureCourseInfo.get(0).getActualTeacherId(),nowDate.get(DateUtil.weekFields.weekOfYear()),
|
|
|
+ teacherCourseMapEntry.getKey(),nowDate.get(DateUtil.weekFields.weekOfYear()),
|
|
|
DateUtil.stringToDate(monDayDate.toString(), "yyyy-MM-dd"), DateUtil.stringToDate(sunDayDate.toString(), "yyyy-MM-dd"),
|
|
|
"EXERCISE", null);
|
|
|
}else{
|