【修改】推送试题增加mysql、ps考点
This commit is contained in:
@@ -51,6 +51,18 @@
|
||||
<result property="name" column="name"/>
|
||||
<result property="ququeName" column="queue_name"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap type="ExamPsKeyword" id="ExamPsKeywordsResult">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="quId" column="qu_id" jdbcType="VARCHAR"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
|
||||
<result property="key" column="key_name" jdbcType="VARCHAR"/>
|
||||
<result property="value" column="key_value" jdbcType="VARCHAR"/>
|
||||
<result property="rate" column="rate" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="sort" column="sort" jdbcType="VARCHAR"/>
|
||||
|
||||
</resultMap>
|
||||
<sql id="selectExamQuestionVo">
|
||||
select qu_id,
|
||||
qu_bank_id,
|
||||
@@ -181,6 +193,12 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
<select id="selectExamQuestionPsKeywordByQuId"
|
||||
resultMap="ExamPsKeywordsResult">
|
||||
select id,qu_id,parent_id,key_name,key_value,rate,type,sort
|
||||
from exam_ps_keyword
|
||||
where qu_id=#{quId}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertExamQuestion" parameterType="ExamQuestion">
|
||||
@@ -278,6 +296,30 @@
|
||||
update_time = VALUES(update_time),
|
||||
updater = VALUES(updater)
|
||||
</insert>
|
||||
<insert id="insertExamPsKeywordList">
|
||||
INSERT INTO exam_ps_keyword (
|
||||
id,
|
||||
qu_id,
|
||||
parent_id,
|
||||
key_name,
|
||||
key_value,
|
||||
rate,
|
||||
type,
|
||||
sort
|
||||
) VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
#{item.id},
|
||||
#{item.quId},
|
||||
#{item.parentId},
|
||||
#{item.key},
|
||||
#{item.value},
|
||||
#{item.rate},
|
||||
#{item.type},
|
||||
#{item.sort}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="updateExamQuestion" parameterType="ExamQuestion">
|
||||
update exam_question
|
||||
|
Reference in New Issue
Block a user