【修改】笔试试卷 表格格式,返回试卷sort顺序等
This commit is contained in:
@@ -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}
|
||||
|
@@ -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">
|
||||
|
||||
|
@@ -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}
|
||||
|
@@ -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>
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user