【修改】笔试试卷 表格格式,返回试卷sort顺序等

This commit is contained in:
YOHO\20373
2025-05-29 17:57:35 +08:00
parent 06054139c7
commit 19bd805831
32 changed files with 478 additions and 86 deletions

View File

@@ -70,8 +70,8 @@
specialty_name = #{taskSpecialty}
AND subject_name = #{educationPaperScheme.spName}
AND tenant_id =#{tId}
and audit = 0
and status = 0
and audit = '0'
and status = '0'
and deleted ='0'
<if test="educationPaperScheme.quLevel != null and educationPaperScheme.quLevel != ''">
AND qu_level = #{educationPaperScheme.quLevel}

View File

@@ -101,7 +101,7 @@
AND s.class_id = #{classId}
</if>
ORDER BY s.id DESC
LIMIT #{pageSize} OFFSET #{offset}
</select>
<select id="selectStuIdByTaskId" resultType="java.lang.String">

View File

@@ -34,6 +34,11 @@
<include refid="selectEducationPaperQuVo"/>
where paper_id = #{paperId}
</select>
<select id="selectRamdomQuId" resultType="java.lang.String">
SELECT qu_id from exam_question WHERE subject_name =#{subjectName} and qu_id not IN
(select qu_id from education_paper_qu where paper_id =#{paperId})ORDER BY RAND()
LIMIT 1;
</select>
<insert id="insertEducationPaperQu" parameterType="EducationPaperQu">
@@ -66,6 +71,12 @@
</trim>
where paper_id = #{paperId}
</update>
<update id="changePaperQu">
update education_paper_qu
set qu_id = #{newQuId}
where paper_id = #{paperId} and qu_id = #{oldQuId}
</update>
<delete id="deleteEducationPaperQuByPaperId" parameterType="String">
delete from education_paper_qu where paper_id = #{paperId}

View File

@@ -90,8 +90,8 @@
WHERE specialty_name = #{taskSpecialty}
AND subject_name = #{spName}
AND tenant_id =#{tId}
and audit = 0
and status = 0
and audit = '0'
and status = '0'
<if test="quLevel != null and quLevel != ''">
AND qu_level = #{quLevel}
</if>

View File

@@ -283,6 +283,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</update>
<update id="changeStatus">
UPDATE exam_question
set status =#{status}
where qu_id =#{quId}
</update>
</mapper>