|
@@ -197,10 +197,17 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
throw new StatusException("1007", "获取试卷失败");
|
|
|
}
|
|
|
|
|
|
+ // 生成试卷结构
|
|
|
+ ExtractConfigPaperCacheBean extractConfigPaper = CacheHelper.getExtractConfigPaper(examingSession.getExamId(),
|
|
|
+ courseBean.getCode(), examingSession.getPaperType(), paperId);
|
|
|
+ if (log.isDebugEnabled()) {
|
|
|
+ log.debug("5 获取题库试卷结构耗时:" + (System.currentTimeMillis() - startTime) + " ms");
|
|
|
+ }
|
|
|
+
|
|
|
// 生成考试记录
|
|
|
startTime = System.currentTimeMillis();
|
|
|
ExamRecordData examRecordData = examRecordDataService.createExamRecordData(examingSession, examBean, courseBean,
|
|
|
- paperId);
|
|
|
+ paperId, extractConfigPaper.getDefaultPaper().getFullyObjective());
|
|
|
|
|
|
// 如果开启人脸比对,将同步人脸比对结果存储到抓后结果表中
|
|
|
Long rootOrgId = examRecordData.getRootOrgId();
|
|
@@ -216,12 +223,6 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
log.debug("4 生成考试记录耗时:" + (System.currentTimeMillis() - startTime) + " ms");
|
|
|
}
|
|
|
|
|
|
- // 生成试卷结构
|
|
|
- ExtractConfigPaperCacheBean extractConfigPaper = CacheHelper.getExtractConfigPaper(examingSession.getExamId(),
|
|
|
- courseBean.getCode(), examingSession.getPaperType(), paperId);
|
|
|
- if (log.isDebugEnabled()) {
|
|
|
- log.debug("5 获取题库试卷结构耗时:" + (System.currentTimeMillis() - startTime) + " ms");
|
|
|
- }
|
|
|
|
|
|
// 小题乱序,选项乱序
|
|
|
startTime = System.currentTimeMillis();
|