【修改】试题编号,学生进入考试参数返回增加试卷编号

This commit is contained in:
YOHO\20373
2025-05-30 17:36:29 +08:00
parent 1f1417ab44
commit bc92ff23e4
11 changed files with 59 additions and 22 deletions

View File

@@ -146,13 +146,14 @@ public class EndStuMonitorUtils {
}
//练习下的任务 结束改为 代考 其他为结束
if ("0".equals(educationPaperTask.getTaskType())){
info.setExamStatus("0");
stringRedisTemplate.opsForValue().set(key, JsonUtils.toJsonString(info));
}else {
//考试下的任务 结束改为 结束 其他为待考
if ("1".equals(educationPaperTask.getTaskType())){
info.setExamStatus("2");
redisTemplate.delete(key);
}else {
info.setExamStatus("0");
stringRedisTemplate.opsForValue().set(key, JsonUtils.toJsonString(info));
}
monitorMapper.updateById(info);