|
@@ -163,12 +163,20 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
|
|
} else {
|
|
} else {
|
|
er.setHasAnswerFile(1);
|
|
er.setHasAnswerFile(1);
|
|
}
|
|
}
|
|
|
|
+ er.setClientWebsocketId(SystemConstant.getNanoId());
|
|
Map<String, Object> map = SimpleBeanUtil.objectToMap(er);
|
|
Map<String, Object> map = SimpleBeanUtil.objectToMap(er);
|
|
ExamStatusBean examStatusBean = new ExamStatusBean(ExamRecordStatusEnum.FIRST_PREPARE, System.currentTimeMillis());
|
|
ExamStatusBean examStatusBean = new ExamStatusBean(ExamRecordStatusEnum.FIRST_PREPARE, System.currentTimeMillis());
|
|
map.put(SystemConstant.STATUS, examStatusBean);
|
|
map.put(SystemConstant.STATUS, examStatusBean);
|
|
redisUtil.setForHash(RedisKeyHelper.examRecordCacheKey(er.getId()), map);
|
|
redisUtil.setForHash(RedisKeyHelper.examRecordCacheKey(er.getId()), map);
|
|
sendExamRecordDataSaveMq(er.getId(), System.currentTimeMillis());
|
|
sendExamRecordDataSaveMq(er.getId(), System.currentTimeMillis());
|
|
|
|
|
|
|
|
+ ExamRecordCacheUtil.setClientWebsocketStatus(er.getId(), WebsocketStatusEnum.ON_LINE, System.currentTimeMillis());
|
|
|
|
+ if (Objects.nonNull(exam.getMonitorVideoSource())) {
|
|
|
|
+ String[] strs = exam.getMonitorVideoSource().split(",");
|
|
|
|
+ for (int i = 0; i < strs.length; i++) {
|
|
|
|
+ ExamRecordCacheUtil.setMonitorStatus(er.getId(), MonitorVideoSourceEnum.valueOf(strs[i]), MonitorStatusSourceEnum.START, System.currentTimeMillis());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//2022-04-15新增
|
|
//2022-04-15新增
|
|
ExamingDataCacheUtil.setExamingRecordId(studentId, er.getId());
|
|
ExamingDataCacheUtil.setExamingRecordId(studentId, er.getId());
|
|
return er;
|
|
return er;
|