|
@@ -204,5 +204,22 @@ public class LessonExaminationServiceImpl extends ServiceImpl<LessonExaminationD
|
|
|
return baseMapper.getOneByStudent(userId,lessonExaminationId);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void pushEndMsg() {
|
|
|
+ String date = DateUtil.dateToString(DateUtil.addDays(new Date(), 1),DateUtil.ISO_EXPANDED_DATE_FORMAT);
|
|
|
+ //获取即将截止的测验列表
|
|
|
+ List<LessonExamination> lessonExaminations = baseMapper.queryEndList(date);
|
|
|
+ if(CollectionUtils.isNotEmpty(lessonExaminations)){
|
|
|
+ for (LessonExamination vo : lessonExaminations) {
|
|
|
+ Map<Integer, String> userMap = new HashMap<>(1);
|
|
|
+ userMap.put(vo.getTeacherId(), vo.getTeacherId().toString());
|
|
|
+ String notifyUrl = "evaluating?evaluateId=" + vo.getId();
|
|
|
+ String dateToString = DateUtil.dateToString(vo.getCreateTime(), DateUtil.ISO_EXPANDED_DATE_FORMAT);
|
|
|
+ sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.TEACHER_PUSH_LESSON_EXAMINATION_END,
|
|
|
+ userMap, null, 0, 3 + notifyUrl, "TEACHER", dateToString);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|