|
@@ -195,7 +195,6 @@ public class TEStudentController {
|
|
} else {
|
|
} else {
|
|
durationSeconds = Integer.parseInt(String.valueOf(objectMap.get("durationSeconds")));
|
|
durationSeconds = Integer.parseInt(String.valueOf(objectMap.get("durationSeconds")));
|
|
}
|
|
}
|
|
- //获取考试缓存
|
|
|
|
ExamCacheBean ec = teExamService.getExamCacheBean(examIdMap);
|
|
ExamCacheBean ec = teExamService.getExamCacheBean(examIdMap);
|
|
|
|
|
|
//获取最近同步时间
|
|
//获取最近同步时间
|
|
@@ -212,8 +211,8 @@ public class TEStudentController {
|
|
} else {//否则断点次数减1
|
|
} else {//否则断点次数减1
|
|
leftBreakResumeCount--;
|
|
leftBreakResumeCount--;
|
|
leftBreakResumeCount = leftBreakResumeCount <= 0 ? 0 : leftBreakResumeCount;
|
|
leftBreakResumeCount = leftBreakResumeCount <= 0 ? 0 : leftBreakResumeCount;
|
|
- //如果断点次数超过了考试整体断点次数,也强制交卷
|
|
|
|
- if (leftBreakResumeCount < ec.getBreakResumeCount()) {
|
|
|
|
|
|
+ //如果断点次数为0,也强制交卷
|
|
|
|
+ if (leftBreakResumeCount <= 0) {
|
|
teExamService.finish(teStudentCacheDto.getId(), recordId, FinishTypeEnum.AUTO.name(), durationSeconds);
|
|
teExamService.finish(teStudentCacheDto.getId(), recordId, FinishTypeEnum.AUTO.name(), durationSeconds);
|
|
List<TEExamDto> list = teExamService.getWaitingExam(teStudent.getId(), examId, orgId);
|
|
List<TEExamDto> list = teExamService.getWaitingExam(teStudent.getId(), examId, orgId);
|
|
if (Objects.nonNull(list) && list.size() > 0) {
|
|
if (Objects.nonNull(list) && list.size() > 0) {
|