|
@@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="optionF" column="option_f" />
|
|
<result property="optionF" column="option_f" />
|
|
<result property="optionG" column="option_g" />
|
|
<result property="optionG" column="option_g" />
|
|
<result property="optionH" column="option_h" />
|
|
<result property="optionH" column="option_h" />
|
|
- <result property="explain" column="explain" />
|
|
|
|
|
|
+ <result property="explain1" column="explain1" />
|
|
<result property="conciseExplain" column="concise_explain" />
|
|
<result property="conciseExplain" column="concise_explain" />
|
|
<result property="keywords" column="keywords" />
|
|
<result property="keywords" column="keywords" />
|
|
<result property="assuredKeywords" column="assured_keywords" />
|
|
<result property="assuredKeywords" column="assured_keywords" />
|
|
@@ -38,12 +38,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectQuestionInfoVo">
|
|
<sql id="selectQuestionInfoVo">
|
|
- select id, question_id, media_type, chapter_id, label, question, media_key, answer, option_a, option_b, option_c, option_d, option_e, option_f, option_g, option_h, explain, concise_explain, keywords, assured_keywords, illiteracy_explain, illiteracy_keywords, difficulty, wrong_rate, option_type, knack_keyword, knack_img_url, knack_detail, knack_voice_txt, m, from question_info
|
|
|
|
|
|
+ select id, question_id, media_type, chapter_id, label, question, media_key, answer, option_a, option_b, option_c, option_d, option_e, option_f, option_g, option_h, explain1, concise_explain, keywords, assured_keywords, illiteracy_explain, illiteracy_keywords, difficulty, wrong_rate, option_type, knack_keyword, knack_img_url, knack_detail, knack_voice_txt, m from question_info
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectQuestionInfoList" parameterType="QuestionInfo" resultMap="QuestionInfoResult">
|
|
<select id="selectQuestionInfoList" parameterType="QuestionInfo" resultMap="QuestionInfoResult">
|
|
<include refid="selectQuestionInfoVo"/>
|
|
<include refid="selectQuestionInfoVo"/>
|
|
<where>
|
|
<where>
|
|
|
|
+ <if test="id != null "> and id = #{id}</if>
|
|
<if test="questionId != null "> and question_id = #{questionId}</if>
|
|
<if test="questionId != null "> and question_id = #{questionId}</if>
|
|
<if test="mediaType != null "> and media_type = #{mediaType}</if>
|
|
<if test="mediaType != null "> and media_type = #{mediaType}</if>
|
|
<if test="chapterId != null "> and chapter_id = #{chapterId}</if>
|
|
<if test="chapterId != null "> and chapter_id = #{chapterId}</if>
|
|
@@ -59,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="optionF != null and optionF != ''"> and option_f = #{optionF}</if>
|
|
<if test="optionF != null and optionF != ''"> and option_f = #{optionF}</if>
|
|
<if test="optionG != null and optionG != ''"> and option_g = #{optionG}</if>
|
|
<if test="optionG != null and optionG != ''"> and option_g = #{optionG}</if>
|
|
<if test="optionH != null and optionH != ''"> and option_h = #{optionH}</if>
|
|
<if test="optionH != null and optionH != ''"> and option_h = #{optionH}</if>
|
|
- <if test="explain != null "> and explain = #{explain}</if>
|
|
|
|
|
|
+ <if test="explain1 != null "> and explain1 = #{explain1}</if>
|
|
<if test="conciseExplain != null "> and concise_explain = #{conciseExplain}</if>
|
|
<if test="conciseExplain != null "> and concise_explain = #{conciseExplain}</if>
|
|
<if test="keywords != null "> and keywords = #{keywords}</if>
|
|
<if test="keywords != null "> and keywords = #{keywords}</if>
|
|
<if test="assuredKeywords != null "> and assured_keywords = #{assuredKeywords}</if>
|
|
<if test="assuredKeywords != null "> and assured_keywords = #{assuredKeywords}</if>
|