|
|
@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="answer" column="answer" /> |
|
|
<result property="answer" column="answer" /> |
|
|
<result property="correctAnswer" column="correct_answer" /> |
|
|
<result property="correctAnswer" column="correct_answer" /> |
|
|
<result property="correct" column="correct" /> |
|
|
<result property="correct" column="correct" /> |
|
|
|
|
|
<result property="analysis" column="analysis" /> |
|
|
<result property="creator" column="creator" /> |
|
|
<result property="creator" column="creator" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="createTime" column="create_time" /> |
|
|
<result property="updator" column="updator" /> |
|
|
<result property="updator" column="updator" /> |
|
|
@ -19,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectQuestionAnswerVo"> |
|
|
<sql id="selectQuestionAnswerVo"> |
|
|
select guid, question_fre_id, question_id, ask, answer, correct_answer, correct, creator, create_time, updator, update_time from question_answer |
|
|
select guid, question_fre_id, question_id, ask, answer, analysis, correct_answer, correct, creator, create_time, updator, update_time from question_answer |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectQuestionAnswerList" parameterType="QuestionAnswer" resultMap="QuestionAnswerResult"> |
|
|
<select id="selectQuestionAnswerList" parameterType="QuestionAnswer" resultMap="QuestionAnswerResult"> |
|
|
@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="questionFreId != null and questionFreId != ''"> and question_fre_id = #{questionFreId}</if> |
|
|
<if test="questionFreId != null and questionFreId != ''"> and question_fre_id = #{questionFreId}</if> |
|
|
<if test="questionId != null and questionId != ''"> and question_id = #{questionId}</if> |
|
|
<if test="questionId != null and questionId != ''"> and question_id = #{questionId}</if> |
|
|
<if test="answer != null and answer != ''"> and answer = #{answer}</if> |
|
|
<if test="answer != null and answer != ''"> and answer = #{answer}</if> |
|
|
|
|
|
<if test="analysis != null and analysis != ''"> and analysis = #{analysis}</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''"> and correct_answer = #{correctAnswer}</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''"> and correct_answer = #{correctAnswer}</if> |
|
|
<if test="correct != null "> and correct = #{correct}</if> |
|
|
<if test="correct != null "> and correct = #{correct}</if> |
|
|
<if test="creator != null and creator != ''"> and creator = #{creator}</if> |
|
|
<if test="creator != null and creator != ''"> and creator = #{creator}</if> |
|
|
@ -50,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="answer != null and answer != ''">answer,</if> |
|
|
<if test="answer != null and answer != ''">answer,</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''">correct_answer,</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''">correct_answer,</if> |
|
|
<if test="correct != null ">correct,</if> |
|
|
<if test="correct != null ">correct,</if> |
|
|
|
|
|
<if test="analysis != null and analysis != ''">analysis,</if> |
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
<if test="createTime != null ">create_time,</if> |
|
|
<if test="createTime != null ">create_time,</if> |
|
|
<if test="updator != null and updator != ''">updator,</if> |
|
|
<if test="updator != null and updator != ''">updator,</if> |
|
|
@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="answer != null and answer != ''">#{answer},</if> |
|
|
<if test="answer != null and answer != ''">#{answer},</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''">#{correctAnswer},</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''">#{correctAnswer},</if> |
|
|
<if test="correct != null ">#{correct},</if> |
|
|
<if test="correct != null ">#{correct},</if> |
|
|
|
|
|
<if test="analysis != null and analysis != ''">#{analysis},</if> |
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
<if test="createTime != null ">#{createTime},</if> |
|
|
<if test="createTime != null ">#{createTime},</if> |
|
|
<if test="updator != null and updator != ''">#{updator},</if> |
|
|
<if test="updator != null and updator != ''">#{updator},</if> |
|
|
@ -79,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="answer != null and answer != ''">answer = #{answer},</if> |
|
|
<if test="answer != null and answer != ''">answer = #{answer},</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''">correct_answer = #{correctAnswer},</if> |
|
|
<if test="correctAnswer != null and correctAnswer != ''">correct_answer = #{correctAnswer},</if> |
|
|
<if test="correct != null ">correct = #{correct},</if> |
|
|
<if test="correct != null ">correct = #{correct},</if> |
|
|
|
|
|
<if test="analysis != null and analysis != ''">analysis = #{analysis},</if> |
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
<if test="createTime != null ">create_time = #{createTime},</if> |
|
|
<if test="createTime != null ">create_time = #{createTime},</if> |
|
|
<if test="updator != null and updator != ''">updator = #{updator},</if> |
|
|
<if test="updator != null and updator != ''">updator = #{updator},</if> |
|
|
|