【增加】试题推送试题库,学生登录返回i性别字段
This commit is contained in:
@@ -107,8 +107,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
FROM system_tenant
|
||||
WHERE deleted = 0
|
||||
</select>
|
||||
<select id="selectExamQuestionCountByQuId" resultType="java.lang.Integer">
|
||||
select count(*) from exam_question where qu_id=#{quId}
|
||||
<select id="selectExamQuestionCountByQuId" resultMap="ExamQuestionResult">
|
||||
select * from exam_question where qu_bank_id=#{quId}
|
||||
</select>
|
||||
<select id="getSchoolNameNaPage" resultMap="TenantVoResult">
|
||||
SELECT id, name, queue_name
|
||||
@@ -182,6 +182,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertOrUpdateList">
|
||||
|
||||
INSERT INTO exam_question (qu_id, qu_bank_id, chapterId_dict_text, subject_name,specialty_name, course_name, qu_level, content, audit, status, content_text, analysis, point_names, keywords, manual)
|
||||
VALUES
|
||||
<foreach collection="collection" item="item" separator=",">
|
||||
(#{item.quId}, #{item.quBankId}, #{item.chapteridDictText}, #{item.subjectName},
|
||||
#{item.specialtyName}, #{item.courseName}, #{item.quLevel}, #{item.content}, #{item.audit}
|
||||
, #{item.status}, #{item.contentText}, #{item.analysis}, #{item.pointNames}, #{item.keywords}, #{item.manual})
|
||||
</foreach>
|
||||
ON DUPLICATE KEY UPDATE
|
||||
chapterId_dict_text = VALUES(chapterId_dict_text),
|
||||
subject_name = VALUES(subject_name),
|
||||
specialty_name = VALUES(specialty_name),
|
||||
course_name = VALUES(course_name),
|
||||
qu_level = VALUES(qu_level),
|
||||
content = VALUES(content),
|
||||
audit = VALUES(audit),
|
||||
status = VALUES(status),
|
||||
content_text = VALUES(content_text),
|
||||
analysis = VALUES(analysis),
|
||||
point_names = VALUES(point_names),
|
||||
keywords = VALUES(keywords),
|
||||
manual = VALUES(manual);
|
||||
|
||||
</insert>
|
||||
|
||||
<update id="updateExamQuestion" parameterType="ExamQuestion">
|
||||
update exam_question
|
||||
|
Reference in New Issue
Block a user