【新增】mysql、浏览器、win文件判分,试卷任务学生端接口,监控管理后端接口

This commit is contained in:
YOHO\20373
2025-05-07 09:49:46 +08:00
parent d2c9c399d7
commit cdb75a5b44
28 changed files with 362 additions and 85 deletions

View File

@@ -7,11 +7,11 @@
<resultMap type="EducationPaperQu" id="EducationPaperQuResult">
<result property="paperId" column="paper_id" />
<result property="quId" column="qu_id" />
<result property="quVersion" column="qu_version" />
<result property="sort" column="sort" />
</resultMap>
<sql id="selectEducationPaperQuVo">
select paper_id, qu_id, qu_version from education_paper_qu
select paper_id, qu_id, sort from education_paper_qu
</sql>
<select id="selectEducationPaperQuList" parameterType="EducationPaperQu" resultMap="EducationPaperQuResult">
@@ -19,7 +19,7 @@
<where>
<if test="paperId != null and paperId != ''"> and paper_id = #{paperId}</if>
<if test="quId != null and quId != ''"> and qu_id = #{quId}</if>
<if test="quVersion != null and quVersion != ''"> and qu_version = #{quVersion}</if>
<if test="sort != null and sort != ''"> and qu_version = #{quVersion}</if>
</where>
</select>
@@ -28,7 +28,7 @@
where paper_id = #{paperId}
</select>
<select id="selectPaperQuByPaperId" resultType="java.lang.String">
select qu_id from education_paper_qu where paper_id =#{paperId}
select qu_id from education_paper_qu where paper_id =#{paperId} order by sort asc
</select>
<select id="selectPaperQuListByPaperId" resultMap="EducationPaperQuResult">
<include refid="selectEducationPaperQuVo"/>
@@ -41,12 +41,12 @@
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="paperId != null">paper_id,</if>
<if test="quId != null">qu_id,</if>
<if test="quVersion != null">qu_version,</if>
<if test="sort != null">sort,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="paperId != null">#{paperId},</if>
<if test="quId != null">#{quId},</if>
<if test="quVersion != null">#{quVersion},</if>
<if test="sort != null">#{sort},</if>
</trim>
</insert>
<insert id="insertEducationPaperQuList">

View File

@@ -9,6 +9,7 @@
<result property="taskName" column="task_name" />
<result property="taskSpecialty" column="task_specialty" />
<result property="taskType" column="task_type" />
<result property="isOne" column="is_one" />
<result property="isTemplate" column="is_template" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
@@ -29,7 +30,7 @@
<result property="treeNum" column="tree_num" />
</resultMap>
<sql id="selectEducationPaperTaskVo">
select task_id, task_name, task_specialty, task_type, is_template, status, create_time, update_time, creator, updater, deleted,tenant_id from education_paper_task
select task_id, task_name, task_specialty, task_type,is_one, is_template, status, create_time, update_time, creator, updater, deleted,tenant_id from education_paper_task
</sql>
@@ -119,6 +120,15 @@
where task_type = #{id}
and deleted='0'
</select>
<select id="selectPaperQuByPaperId" resultType="java.lang.String">
SELECT paper_id
FROM education_paper
WHERE task_id =#{taskId}
and roll_up is not NULL
and deleted ='0'
ORDER BY RAND()
LIMIT 1;
</select>
<insert id="insertEducationPaperTask" parameterType="EducationPaperTask">
@@ -160,6 +170,7 @@
<if test="taskName != null">task_name = #{taskName},</if>
<if test="taskSpecialty != null">task_specialty = #{taskSpecialty},</if>
<if test="taskType != null">task_type = #{taskType},</if>
<if test="isOne != null">is_one = #{isOne},</if>
<if test="isTemplate != null">is_template = #{isTemplate},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>