【修改】ps考点出题完善

This commit is contained in:
huababa1
2025-07-04 18:47:34 +08:00
parent f4c9c1c9e7
commit a3be5c26a1
10 changed files with 225 additions and 31 deletions

View File

@@ -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>