|
@@ -212,6 +212,7 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
|
|
List<StudentExtracurricularExercisesSituation> teacherServeWithDate = studentExtracurricularExercisesSituationDao.findTeacherServeWithDate(queryInfo.getMonday(), queryInfo.getSunday(), teacherIds, null);
|
|
List<StudentExtracurricularExercisesSituation> teacherServeWithDate = studentExtracurricularExercisesSituationDao.findTeacherServeWithDate(queryInfo.getMonday(), queryInfo.getSunday(), teacherIds, null);
|
|
Map<Integer, List<StudentExtracurricularExercisesSituation>> teacherServeMap = teacherServeWithDate.stream().collect(Collectors.groupingBy(StudentExtracurricularExercisesSituation::getTeacherId));
|
|
Map<Integer, List<StudentExtracurricularExercisesSituation>> teacherServeMap = teacherServeWithDate.stream().collect(Collectors.groupingBy(StudentExtracurricularExercisesSituation::getTeacherId));
|
|
for (TeacherServeDto teacherServeDto : dataList) {
|
|
for (TeacherServeDto teacherServeDto : dataList) {
|
|
|
|
+ teacherServeDto.setHomeworkStuNum(teacherServeDto.getActualExercisesNum() - teacherServeDto.getExerciseNum());
|
|
List<StudentExtracurricularExercisesSituation> tss = teacherServeMap.get(teacherServeDto.getTeacherId());
|
|
List<StudentExtracurricularExercisesSituation> tss = teacherServeMap.get(teacherServeDto.getTeacherId());
|
|
Set<Long> courseIds = new HashSet<>();
|
|
Set<Long> courseIds = new HashSet<>();
|
|
for (StudentExtracurricularExercisesSituation ts : tss) {
|
|
for (StudentExtracurricularExercisesSituation ts : tss) {
|
|
@@ -236,7 +237,6 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
|
|
TeacherRemind lastTeacherRemind = teacherRemindMap.get(teacherServeDto.getTeacherId()).stream().max(Comparator.comparing(TeacherRemind::getCreateTime)).get();
|
|
TeacherRemind lastTeacherRemind = teacherRemindMap.get(teacherServeDto.getTeacherId()).stream().max(Comparator.comparing(TeacherRemind::getCreateTime)).get();
|
|
teacherServeDto.setOperatorName(lastTeacherRemind.getOperatorName());
|
|
teacherServeDto.setOperatorName(lastTeacherRemind.getOperatorName());
|
|
teacherServeDto.setRemindDate(lastTeacherRemind.getCreateTime());
|
|
teacherServeDto.setRemindDate(lastTeacherRemind.getCreateTime());
|
|
- teacherServeDto.setHomeworkStuNum(teacherServeDto.getActualExercisesNum() - teacherServeDto.getExerciseNum());
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (count == 0) {
|
|
if (count == 0) {
|