|
@@ -506,7 +506,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
studentExercisesMap = allStudentExercises.stream().collect(Collectors.groupingBy(ExtracurricularExercisesReply::getUserId));
|
|
|
}
|
|
|
|
|
|
- List<StudentExtracurricularExercisesSituation> weekServiceWithStudents = studentExtracurricularExercisesSituationDao.findWeekServiceWithStudents(monDayDate.toString(), null, studentIds);
|
|
|
+ List<StudentExtracurricularExercisesSituation> weekServiceWithStudents = studentExtracurricularExercisesSituationDao.findWeekServiceWithStudents(monDayDate.toString(), teacherId, studentIds);
|
|
|
|
|
|
for (StudentExtracurricularExercisesSituation weekServiceWithStudent : weekServiceWithStudents) {
|
|
|
List<StudentServeCourseHomeworkDto> studentHomeworks = studentHomeworkMap.get(weekServiceWithStudent.getStudentId());
|
|
@@ -573,7 +573,9 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- studentExtracurricularExercisesSituationDao.batchUpdate(weekServiceWithStudents);
|
|
|
+ if(!CollectionUtils.isEmpty(weekServiceWithStudents)){
|
|
|
+ studentExtracurricularExercisesSituationDao.batchUpdate(weekServiceWithStudents);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|