|
@@ -413,7 +413,7 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(CollectionUtils.isEmpty(studentIds)){
|
|
|
+ if(CollectionUtils.isEmpty(results)){
|
|
|
studentExtracurricularExercisesSituationDao.deleteByMonday(monDayDate.toString());
|
|
|
BigDecimal currentPage1=BigDecimal.ONE,
|
|
|
pageSize1=new BigDecimal(10000),
|
|
@@ -656,4 +656,17 @@ public class StudentServeServiceImpl implements StudentServeService {
|
|
|
}
|
|
|
return courseIds;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Set<Integer> getStudentWithCourse(Long courseId) {
|
|
|
+ CourseSchedule courseSchedule = courseScheduleDao.get(courseId);
|
|
|
+ if(Objects.isNull(courseSchedule)){
|
|
|
+ throw new BizException("课程不存在");
|
|
|
+ }
|
|
|
+ LocalDate nowDate = LocalDateTime.ofInstant(courseSchedule.getClassDate().toInstant(), DateUtil.zoneId).toLocalDate();
|
|
|
+
|
|
|
+ LocalDate monDayDate = nowDate.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue());
|
|
|
+ studentExtracurricularExercisesSituationDao.findServiceWithCourse(monDayDate.toString(), courseId);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|