【修改】监控管理,【新增】学生端试卷接口

This commit is contained in:
YOHO\20373
2025-05-05 21:19:14 +08:00
47 changed files with 722 additions and 45 deletions

View File

@@ -7,6 +7,9 @@
<resultMap type="EducationPaperParam" id="EducationPaperParamResult">
<result property="paramId" column="param_id" />
<result property="taskId" column="task_id" />
<result property="isNumber" column="is_number" />
<result property="isContent" column="is_content" />
<result property="isAnswerId" column="is_answer_id" />
<result property="isExamPassword" column="is_exam_password" />
<result property="examPassword" column="exam_password" />
<result property="usb" column="usb" />
@@ -23,7 +26,7 @@
</resultMap>
<sql id="selectEducationPaperParamVo">
select param_id, task_id, is_exam_password, exam_password, usb, save_grades, driver, directory, upload_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_del,is_repeat ,is_answer,is_look,is_connect,is_session from education_paper_param
</sql>
<select id="selectEducationPaperParamList" parameterType="EducationPaperParam" resultMap="EducationPaperParamResult">
@@ -55,6 +58,9 @@
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="paramId != null">param_id,</if>
<if test="taskId != null">task_id,</if>
<if test="isNumber != null">is_number,</if>
<if test="isContent != null">is_content,</if>
<if test="isAnswerId != null">is_answer_id,</if>
<if test="isExamPassword != null">is_exam_password,</if>
<if test="examPassword != null">exam_password,</if>
<if test="usb != null">usb,</if>
@@ -73,6 +79,9 @@
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="paramId != null">#{paramId},</if>
<if test="taskId != null">#{taskId},</if>
<if test="isNumber != null">#{isNumber},</if>
<if test="isContent != null">#{isContent},</if>
<if test="isAnswerId != null">#{isAnswerId},</if>
<if test="isExamPassword != null">#{isExamPassword},</if>
<if test="examPassword != null">#{examPassword},</if>
<if test="usb != null">#{usb},</if>
@@ -94,6 +103,9 @@
update education_paper_param
<trim prefix="SET" suffixOverrides=",">
<if test="taskId != null">task_id = #{taskId},</if>
<if test="isNumber != null">is_number = #{isNumber},</if>
<if test="isContent != null">is_content = #{isContent},</if>
<if test="isAnswerId != null">is_answer_id = #{isAnswerId},</if>
<if test="isExamPassword != null">is_exam_password = #{isExamPassword},</if>
<if test="examPassword != null">exam_password = #{examPassword},</if>
<if test="usb != null">usb = #{usb},</if>

View File

@@ -107,6 +107,10 @@
ORDER BY s.id DESC
</select>
<select id="selectStuIdByTaskId" resultType="java.lang.String">
select person_id from education_paper_person where task_id=#{taskId}
</select>
<insert id="insertEducationPaperPerson" parameterType="EducationPaperPerson">

View File

@@ -113,6 +113,12 @@
<select id="selectStuClassNameByClassId" resultType="java.lang.String">
select name from exam_class where id=#{classId}
</select>
<select id="selectEducationPaperTaskByTaskType"
resultMap="EducationPaperTaskResult">
<include refid="selectEducationPaperTaskVo"/>
where task_type = #{id}
and deleted='0'
</select>
<insert id="insertEducationPaperTask" parameterType="EducationPaperTask">

View File

@@ -38,7 +38,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="quId != null "> and qu_id = #{quId}</if>
</where>
and (file_type = '0' or file_type ='1')
</select>
<insert id="insertSysFile" parameterType="SysFileUpload">