|
@@ -532,6 +532,22 @@ public class StudentExtracurricularExercisesSituationServiceImpl extends BaseSer
|
|
|
|
|
|
@Override
|
|
|
public int countWaitCreateHomeworkNum(TeacherServeHomeworkQueryInfo queryInfo) {
|
|
|
- return 0;
|
|
|
+ List<StudentExtracurricularExercisesSituation> weekServiceWithStudents = studentExtracurricularExercisesSituationDao.findWeekServiceWithStudents(null, queryInfo.getTeacherId(), null);
|
|
|
+ if(weekServiceWithStudents == null || weekServiceWithStudents.size() == 0){
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ List<StudentExtracurricularExercisesSituation> containsList = weekServiceWithStudents.stream().filter(e -> e.getCourseIds().contains(",")).collect(Collectors.toList());
|
|
|
+ int num = 0;
|
|
|
+ if(containsList != null && containsList.size() > 0){
|
|
|
+ for (StudentExtracurricularExercisesSituation e : containsList) {
|
|
|
+ String[] split = e.getCourseIds().split(",");
|
|
|
+ if(e.getNotOverCourseNum() == 0){
|
|
|
+ num = num + split.length - e.getNotOverCourseNum();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ List<StudentExtracurricularExercisesSituation> situationList = weekServiceWithStudents.stream().filter(e -> !e.getCourseIds().contains(",") && e.getNotOverCourseNum() == 0).collect(Collectors.toList());
|
|
|
+ num += situationList.size();
|
|
|
+ return num;
|
|
|
}
|
|
|
-}
|
|
|
+}
|