|
@@ -140,14 +140,6 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
-// if(createDateTime.isBefore(monDayDate)&&isOk){
|
|
|
-// StudentExtracurricularExercisesSituation studentExercisesSituation = studentExtracurricularExercisesSituationDao.findStudentExercisesSituationsWithMonDay(createMonday.toString(), existHomework.getUserId());
|
|
|
-// if(Objects.nonNull(studentExercisesSituation)){
|
|
|
-// studentExercisesSituation.setExercisesReplyNum(1);
|
|
|
-// studentExercisesSituation.setLastSubmitTime(now);
|
|
|
-// studentExtracurricularExercisesSituationDao.update(studentExercisesSituation);
|
|
|
-// }
|
|
|
-// }
|
|
|
|
|
|
studentServeService.updateExercisesSituation(courseSchedule.getClassDate(), new ArrayList<>(Arrays.asList(bean.getUserId())), courseSchedule.getTeacherId());
|
|
|
|
|
@@ -261,16 +253,7 @@ public class StudentCourseHomeworkServiceImpl extends BaseServiceImpl<Long, Stud
|
|
|
break;
|
|
|
}
|
|
|
if(createDateTime.isBefore(monDayDate)&&isOk){
|
|
|
- StudentExtracurricularExercisesSituation studentExercisesSituation = studentExtracurricularExercisesSituationDao.findStudentExercisesSituationsWithMonDay(createMonday.toString(), byStudentAndCourseHomewok.getUserId());
|
|
|
- if(Objects.nonNull(studentExercisesSituation)){
|
|
|
- if(YesOrNoEnum.YES.equals(byStudentAndCourseHomewok.getIsReplied())){
|
|
|
- studentExercisesSituation.setExercisesMessageNum(1);
|
|
|
- }
|
|
|
- if(new Integer(1).equals(byStudentAndCourseHomewok.getIsRepliedTimely())){
|
|
|
- studentExercisesSituation.setExercisesMessageTimelyNum(1);
|
|
|
- }
|
|
|
- studentExtracurricularExercisesSituationDao.update(studentExercisesSituation);
|
|
|
- }
|
|
|
+ studentServeService.updateExercisesSituation(new Date(), new ArrayList<>(Arrays.asList(byStudentAndCourseHomewok.getUserId())), teacherId);
|
|
|
}
|
|
|
}
|
|
|
return true;
|