24 lines
980 B
XML
24 lines
980 B
XML
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
|
<!DOCTYPE mapper
|
||
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
|
<mapper namespace="com.example.exam.exam.mapper.ExamQuestionKeywordMapper">
|
||
|
|
|
||
|
|
<resultMap type="ExamQuestionKeyword" id="ExamQuestionKeywordResult">
|
||
|
|
<result property="keywordId" column="keyword_id" />
|
||
|
|
<result property="quId" column="qu_id" />
|
||
|
|
<result property="keyword" column="keyword" />
|
||
|
|
<result property="scoreRate" column="score_rate" />
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<sql id="selectExamQuestionKeywordVo">
|
||
|
|
select keyword_id, qu_id, keyword, score_rate from exam_question_keyword
|
||
|
|
</sql>
|
||
|
|
|
||
|
|
<select id="selectExamQuestionKeywordByQuId" resultMap="ExamQuestionKeywordResult">
|
||
|
|
<include refid="selectExamQuestionKeywordVo"/>
|
||
|
|
<where>
|
||
|
|
<if test="quId != null "> and qu_id = #{quId}</if>
|
||
|
|
</where>
|
||
|
|
</select>
|
||
|
|
</mapper>
|