【修改】ps考点出题完善
This commit is contained in:
@@ -7,21 +7,46 @@
|
||||
<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="keyName" column="key_name" jdbcType="VARCHAR"/>
|
||||
<result property="keyValue" column="key_value" 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>
|
||||
|
||||
|
||||
<insert id="insertPsKeywordList" parameterType="java.util.List">
|
||||
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>
|
||||
|
||||
|
||||
<delete id="deleteByQuId">
|
||||
delete from exam_ps_keyword where qu_id =#{quId}
|
||||
</delete>
|
||||
<select id="selectPsPointByType" resultMap="ExamPsKeywordResult">
|
||||
select id,qu_id,parent_id,key_name,key_value,rate,type from exam_ps_keyword where qu_id=#{quId}
|
||||
select id,qu_id,parent_id,key_name,key_value,rate,type,sort from exam_ps_keyword where qu_id=#{quId}
|
||||
and type=#{type}
|
||||
order by sort asc
|
||||
|
||||
</select>
|
||||
|
||||
|
Reference in New Issue
Block a user