【修改】试题编号,学生进入考试参数返回增加试卷编号

This commit is contained in:
YOHO\20373
2025-05-30 17:36:29 +08:00
parent 1f1417ab44
commit bc92ff23e4
11 changed files with 59 additions and 22 deletions

View File

@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<resultMap type="ExamQuestion" id="ExamQuestionResult">
<result property="quId" column="qu_id" />
<result property="quBankId" column="qu_bank_id" />
<result property="quNum" column="qu_num" />
<result property="quBankName" column="qu_bank_name" />
<result property="chapteridDictText" column="chapterId_dict_text" />
<result property="subjectName" column="subject_name" />
@@ -47,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="ququeName" column="queue_name" />
</resultMap>
<sql id="selectExamQuestionVo">
select qu_id, qu_bank_id, qu_bank_name, chapterId_dict_text,subject_name, qu_level,
select qu_id, qu_bank_id, qu_num,qu_bank_name, chapterId_dict_text,subject_name, qu_level,
content, content_text, analysis, point_names, keywords, manual, create_time, creator, update_time, updater, deleted ,status,audit ,course_name, specialty_name from exam_question
</sql>
@@ -128,6 +129,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSchoolnameBytId" resultType="java.lang.String">
select name from system_tenant where id =#{loginTenantId}
</select>
<select id="selectCountQu" resultType="java.lang.Integer">
select count(*) from exam_question
</select>
<insert id="insertExamQuestion" parameterType="ExamQuestion">
@@ -135,6 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="quId != null">qu_id,</if>
<if test="quBankId != null">qu_bank_id,</if>
<if test="quNum != null">qu_num,</if>
<if test="quBankName != null">qu_bank_name,</if>
<if test="chapteridDictText != null">chapterId_dict_text,</if>
<if test="subjectName != null">subject_name,</if>
@@ -159,6 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="quId != null">#{quId},</if>
<if test="quBankId != null">#{quBankId},</if>
<if test="quNum != null">#{quNum},</if>
<if test="quBankName != null">#{quBankName},</if>
<if test="chapteridDictText != null">#{chapteridDictText},</if>
<if test="subjectName != null">#{subjectName},</if>