|
@@ -88,13 +88,15 @@ public class ExtracurricularExercisesMessageServiceImpl extends BaseServiceImpl<
|
|
|
LocalDate createMonday = createDateTime.with(DateUtil.weekFields.dayOfWeek(), DayOfWeek.MONDAY.getValue());
|
|
|
if(createDateTime.isBefore(monDayDate)){
|
|
|
StudentExtracurricularExercisesSituation studentExercisesSituation = studentExtracurricularExercisesSituationDao.findStudentExercisesSituationsWithMonDay(createMonday.toString(), extracurricularExercisesReply.getUserId());
|
|
|
- if(new Integer(1).equals(extracurricularExercisesReply.getIsReplied())){
|
|
|
- studentExercisesSituation.setExercisesMessageNum(1);
|
|
|
+ if(Objects.nonNull(studentExercisesSituation)){
|
|
|
+ if(new Integer(1).equals(extracurricularExercisesReply.getIsReplied())){
|
|
|
+ studentExercisesSituation.setExercisesMessageNum(1);
|
|
|
+ }
|
|
|
+ if(new Integer(1).equals(extracurricularExercisesReply.getIsRepliedTimely())){
|
|
|
+ studentExercisesSituation.setExercisesMessageTimelyNum(1);
|
|
|
+ }
|
|
|
+ studentExtracurricularExercisesSituationDao.update(studentExercisesSituation);
|
|
|
}
|
|
|
- if(new Integer(1).equals(extracurricularExercisesReply.getIsRepliedTimely())){
|
|
|
- studentExercisesSituation.setExercisesMessageTimelyNum(1);
|
|
|
- }
|
|
|
- studentExtracurricularExercisesSituationDao.update(studentExercisesSituation);
|
|
|
}
|
|
|
}
|
|
|
}
|