【修改】 1、多任务创建ID更改;2、获取学生是否处在考试中;3、继续考试
This commit is contained in:
@@ -15,4 +15,5 @@ public class StuMonitorPaperVo {
|
||||
|
||||
private String taskId;
|
||||
|
||||
private String temporaryId;
|
||||
}
|
||||
|
@@ -7,6 +7,8 @@ import pc.exam.pp.module.exam.dal.dataobject.EducationPaperSession;
|
||||
import pc.exam.pp.module.exam.dal.dataobject.ExamQuestion;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Data
|
||||
public class ExamPaperVo {
|
||||
String paperId;
|
||||
@@ -24,19 +26,4 @@ public class ExamPaperVo {
|
||||
this.educationPaperSchemeList = educationPaperSchemeList;
|
||||
}
|
||||
|
||||
public List<ExamQuestion> getExamQuestionList() {
|
||||
return examQuestionList;
|
||||
}
|
||||
|
||||
public void setExamQuestionList(List<ExamQuestion> examQuestionList) {
|
||||
this.examQuestionList = examQuestionList;
|
||||
}
|
||||
|
||||
public List<EducationPaperScheme> getEducationPaperSchemeList() {
|
||||
return educationPaperSchemeList;
|
||||
}
|
||||
|
||||
public void setEducationPaperSchemeList(List<EducationPaperScheme> educationPaperSchemeList) {
|
||||
this.educationPaperSchemeList = educationPaperSchemeList;
|
||||
}
|
||||
}
|
||||
|
@@ -38,7 +38,6 @@ public class EducationPaperParam
|
||||
private String isAnswerId;
|
||||
|
||||
/** 是否使用监考密码验证(0是1否) */
|
||||
// @Excel(name = "是否使用监考密码验证", readConverterExp = "0=是1否")
|
||||
private String isExamPassword;
|
||||
|
||||
/** 监考密码 */
|
||||
@@ -46,15 +45,12 @@ public class EducationPaperParam
|
||||
private String examPassword;
|
||||
|
||||
/** 禁止学生使用U盘(0是1否) */
|
||||
// @Excel(name = "禁止学生使用U盘", readConverterExp = "0=是1否")
|
||||
private String usb;
|
||||
|
||||
/** 练习成绩保存0最高成绩1最新成绩 */
|
||||
// @Excel(name = "练习成绩保存0最高成绩1最新成绩")
|
||||
private String saveGrades;
|
||||
|
||||
/** 驱动器为学生文件存放系统盘(C,D) */
|
||||
// @Excel(name = "驱动器为学生文件存放系统盘", readConverterExp = "C=,D")
|
||||
private String driver;
|
||||
|
||||
/** 考试目录名称 */
|
||||
@@ -62,11 +58,9 @@ public class EducationPaperParam
|
||||
private String directory;
|
||||
|
||||
/** 考试的模式下定时上传考试目录,每{x}分钟传一次 */
|
||||
// @Excel(name = "考试的模式下定时上传考试目录,每{x}分钟传一次")
|
||||
private String uploadTime;
|
||||
|
||||
/** 是否允许复制题干(0是1否) */
|
||||
// @Excel(name = "完成考试后是否删除考试目录", readConverterExp = "0=是1否")
|
||||
private String isCopy;
|
||||
|
||||
//是否显示重答按钮
|
||||
|
@@ -260,6 +260,7 @@ public class MonitorServiceImpl implements MonitorService {
|
||||
LocalDateTime nowTime = LocalDateTime.now();
|
||||
DateTimeFormatter formatter1 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
info.setStartTime(nowTime.format(formatter1));
|
||||
info.setTemporaryId(stuMonitorPaperVo.getTemporaryId());
|
||||
info.setIp(stuMonitorPaperVo.getIp());
|
||||
|
||||
if (info.getRemainingTime() == null) {
|
||||
|
Reference in New Issue
Block a user