|
@@ -27,11 +27,11 @@ public class ExamStatisticsJob implements Job {
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
|
try {
|
|
|
log.info("考试成绩统计任务执行开始......");
|
|
|
- //获取正在进行中的考试
|
|
|
+ //获取考试(考试已经开始,并且结束时间后的6个小时内的考试)
|
|
|
List<String> examIdList = examService.listExamIng();
|
|
|
if (!CollectionUtils.isEmpty(examIdList)) {
|
|
|
//考试结果统计
|
|
|
- examIdList.stream().forEach(examId -> examStatisticsService.calcExamDimension(examId));
|
|
|
+ examIdList.forEach(examId -> examStatisticsService.calcExamDimension(examId));
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|