【修改】试卷任务参数
This commit is contained in:
@@ -38,13 +38,8 @@ public class EducationPaperTaskController
|
|||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public CommonResult<PageResult<EducationPaperTask>> list(PaperTaskPageVo educationPaperTask)
|
public CommonResult<PageResult<EducationPaperTask>> list(PaperTaskPageVo educationPaperTask)
|
||||||
{
|
{
|
||||||
|
|
||||||
PageResult<EducationPaperTask> pageResult = educationPaperTaskService.selectEducationPaperTaskList(educationPaperTask);
|
PageResult<EducationPaperTask> pageResult = educationPaperTaskService.selectEducationPaperTaskList(educationPaperTask);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return CommonResult.success(BeanUtils.toBean(pageResult, EducationPaperTask.class));
|
return CommonResult.success(BeanUtils.toBean(pageResult, EducationPaperTask.class));
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 查询试卷任务列表(学生端)
|
* 查询试卷任务列表(学生端)
|
||||||
|
@@ -140,7 +140,6 @@ public class ExamQuestionController
|
|||||||
@PostMapping
|
@PostMapping
|
||||||
public CommonResult add(@RequestBody ExamQuestion examQuestion)
|
public CommonResult add(@RequestBody ExamQuestion examQuestion)
|
||||||
{
|
{
|
||||||
System.out.println(examQuestion.getContent()+"content");
|
|
||||||
return success(examQuestionService.insertExamQuestion(examQuestion));
|
return success(examQuestionService.insertExamQuestion(examQuestion));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -82,7 +82,16 @@ public class EducationPaperParam
|
|||||||
private String isSession;
|
private String isSession;
|
||||||
|
|
||||||
private String isTime;
|
private String isTime;
|
||||||
|
// 默认 1 小时
|
||||||
@JsonFormat(pattern = "HH:mm:ss", timezone = "Asia/Shanghai")
|
@JsonFormat(pattern = "HH:mm:ss", timezone = "Asia/Shanghai")
|
||||||
private Time examTime = Time.valueOf("01:00:00"); // 默认 1 小时
|
private Time examTime = Time.valueOf("01:00:00");
|
||||||
|
//考试提醒
|
||||||
|
private String warn;
|
||||||
|
//文件共享
|
||||||
|
private String isFile;
|
||||||
|
//禁用外网
|
||||||
|
private String isNet;
|
||||||
|
//禁止截屏
|
||||||
|
private String isScreen;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -140,6 +140,10 @@ public class EducationPaperTaskServiceImpl implements IEducationPaperTaskService
|
|||||||
educationPaperParam.setUploadTime("5");
|
educationPaperParam.setUploadTime("5");
|
||||||
educationPaperParam.setIsDel("0");
|
educationPaperParam.setIsDel("0");
|
||||||
educationPaperParam.setIsSession("1");
|
educationPaperParam.setIsSession("1");
|
||||||
|
educationPaperParam.setIsFile("1");
|
||||||
|
educationPaperParam.setIsNet("1");
|
||||||
|
educationPaperParam.setIsScreen("1");
|
||||||
|
educationPaperParam.setIsContent("1");
|
||||||
if ("1".equals(educationPaperTask.getTaskType())){
|
if ("1".equals(educationPaperTask.getTaskType())){
|
||||||
educationPaperParam.setIsRepeat("1");
|
educationPaperParam.setIsRepeat("1");
|
||||||
educationPaperParam.setIsAnswer("1");
|
educationPaperParam.setIsAnswer("1");
|
||||||
|
@@ -731,7 +731,7 @@ public class ExamQuestionServiceImpl implements IExamQuestionService
|
|||||||
}
|
}
|
||||||
examQuestionAnswer.setContent(content);
|
examQuestionAnswer.setContent(content);
|
||||||
examQuestionAnswerList.add(examQuestionAnswer);
|
examQuestionAnswerList.add(examQuestionAnswer);
|
||||||
// TODO: 保存到集合或数据库
|
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println(examQuestionAnswerList);
|
System.out.println(examQuestionAnswerList);
|
||||||
|
@@ -15,11 +15,8 @@
|
|||||||
<result property="usb" column="usb" />
|
<result property="usb" column="usb" />
|
||||||
<result property="saveGrades" column="save_grades" />
|
<result property="saveGrades" column="save_grades" />
|
||||||
<result property="driver" column="driver" />
|
<result property="driver" column="driver" />
|
||||||
|
|
||||||
<result property="isTime" column="is_time" />
|
<result property="isTime" column="is_time" />
|
||||||
<result property="examTime" column="exam_time" />
|
<result property="examTime" column="exam_time" />
|
||||||
|
|
||||||
|
|
||||||
<result property="directory" column="directory" />
|
<result property="directory" column="directory" />
|
||||||
<result property="uploadTime" column="upload_time" />
|
<result property="uploadTime" column="upload_time" />
|
||||||
<result property="isDel" column="is_del" />
|
<result property="isDel" column="is_del" />
|
||||||
@@ -28,10 +25,16 @@
|
|||||||
<result property="isLook" column="is_look" />
|
<result property="isLook" column="is_look" />
|
||||||
<result property="isConnect" column="is_connect" />
|
<result property="isConnect" column="is_connect" />
|
||||||
<result property="isSession" column="is_session" />
|
<result property="isSession" column="is_session" />
|
||||||
|
<result property="warn" column="warn" />
|
||||||
|
<result property="isFile" column="is_file" />
|
||||||
|
<result property="isNet" column="is_net" />
|
||||||
|
<result property="isScreen" column="is_screen" />
|
||||||
|
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectEducationPaperParamVo">
|
<sql id="selectEducationPaperParamVo">
|
||||||
select param_id, task_id, is_number,is_content,is_answer_id,is_exam_password, exam_password, usb, save_grades, driver, directory, upload_time, is_time,exam_time,is_del,is_repeat ,is_answer,is_look,is_connect,is_session from education_paper_param
|
select param_id, task_id, is_number,is_content,is_answer_id,is_exam_password, exam_password, usb, save_grades, driver, directory, upload_time, is_time,exam_time,is_del,is_repeat ,is_answer,is_look,is_connect,is_session,warn,is_file,is_net,is_screen from education_paper_param
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectEducationPaperParamList" parameterType="EducationPaperParam" resultMap="EducationPaperParamResult">
|
<select id="selectEducationPaperParamList" parameterType="EducationPaperParam" resultMap="EducationPaperParamResult">
|
||||||
@@ -81,7 +84,10 @@
|
|||||||
<if test="isLook != null">is_look,</if>
|
<if test="isLook != null">is_look,</if>
|
||||||
<if test="isConnect != null">is_connect,</if>
|
<if test="isConnect != null">is_connect,</if>
|
||||||
<if test="isSession != null">is_session,</if>
|
<if test="isSession != null">is_session,</if>
|
||||||
|
<if test="warn != null">warn,</if>
|
||||||
|
<if test="isFile != null">is_file,</if>
|
||||||
|
<if test="isNet != null">is_net,</if>
|
||||||
|
<if test="isScreen != null">is_screen,</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="paramId != null">#{paramId},</if>
|
<if test="paramId != null">#{paramId},</if>
|
||||||
@@ -98,14 +104,16 @@
|
|||||||
<if test="uploadTime != null">#{uploadTime},</if>
|
<if test="uploadTime != null">#{uploadTime},</if>
|
||||||
<if test="isTime != null">#{isTime},</if>
|
<if test="isTime != null">#{isTime},</if>
|
||||||
<if test="examTime != null">#{examTime},</if>
|
<if test="examTime != null">#{examTime},</if>
|
||||||
|
|
||||||
<if test="isDel != null">#{isDel},</if>
|
<if test="isDel != null">#{isDel},</if>
|
||||||
<if test="isRepeat != null">#{isRepeat},</if>
|
<if test="isRepeat != null">#{isRepeat},</if>
|
||||||
<if test="isAnswer != null">#{isAnswer},</if>
|
<if test="isAnswer != null">#{isAnswer},</if>
|
||||||
<if test="isLook != null">#{isLook},</if>
|
<if test="isLook != null">#{isLook},</if>
|
||||||
<if test="isConnect != null">#{isConnect},</if>
|
<if test="isConnect != null">#{isConnect},</if>
|
||||||
<if test="isSession != null">#{isSession},</if>
|
<if test="isSession != null">#{isSession},</if>
|
||||||
|
<if test="warn != null">#{warn},</if>
|
||||||
|
<if test="isFile != null">#{isFile},</if>
|
||||||
|
<if test="isNet != null">#{isNet},</if>
|
||||||
|
<if test="isScreen != null">#{isScreen},</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
@@ -131,6 +139,10 @@
|
|||||||
<if test="isLook != null">is_look = #{isLook},</if>
|
<if test="isLook != null">is_look = #{isLook},</if>
|
||||||
<if test="isConnect != null">is_connect = #{isConnect},</if>
|
<if test="isConnect != null">is_connect = #{isConnect},</if>
|
||||||
<if test="isSession != null">is_session = #{isSession},</if>
|
<if test="isSession != null">is_session = #{isSession},</if>
|
||||||
|
<if test="warn != null">warn = #{warn},</if>
|
||||||
|
<if test="isFile != null">is_file = #{isFile},</if>
|
||||||
|
<if test="isNet != null">is_net = #{isNet},</if>
|
||||||
|
<if test="isScreen != null">is_screen = #{isScreen},</if>
|
||||||
|
|
||||||
</trim>
|
</trim>
|
||||||
where param_id = #{paramId}
|
where param_id = #{paramId}
|
||||||
|
Reference in New Issue
Block a user