|
|
|
@ -14,13 +14,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="creator" column="creator" /> |
|
|
|
<result property="option" column="option" /> |
|
|
|
<result property="answer" column="answer" /> |
|
|
|
<result property="uploadPath" column="upload_path" /> |
|
|
|
<result property="nextQuestionId" column="next_question_id" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectSceneQuestionVo"> |
|
|
|
select guid, code, name, parent_id, role_id, status, creator, create_time, answer, `option`, next_question_id, update_time from scene_question |
|
|
|
select guid, code, name, parent_id, role_id, status, creator, create_time, answer, upload_path, `option`, next_question_id, update_time from scene_question |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectSceneQuestionList" parameterType="SceneQuestion" resultMap="SceneQuestionResult"> |
|
|
|
@ -56,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null ">status,</if> |
|
|
|
<if test="option != null and option != ''">`option`,</if> |
|
|
|
<if test="answer != null and answer != ''">answer,</if> |
|
|
|
<if test="uploadPath != null and uploadPath != ''">upload_path,</if> |
|
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
|
<if test="createTime != null ">create_time,</if> |
|
|
|
<if test="updateTime != null ">update_time,</if> |
|
|
|
@ -68,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null ">#{status},</if> |
|
|
|
<if test="option != null and option != ''">#{option},</if> |
|
|
|
<if test="answer != null and creator != ''">#{answer},</if> |
|
|
|
<if test="uploadPath != null and uploadPath != ''">#{uploadPath},</if> |
|
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
|
<if test="createTime != null ">#{createTime},</if> |
|
|
|
<if test="updateTime != null ">#{updateTime},</if> |
|
|
|
@ -83,6 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="status != null ">status = #{status},</if> |
|
|
|
<if test="option != null and option != ''">`option` = #{option},</if> |
|
|
|
<if test="answer != null and answer != ''">answer = #{answer},</if> |
|
|
|
<if test="uploadPath != null and uploadPath != ''">upload_path = #{uploadPath},</if> |
|
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
|
<if test="updateTime != null ">update_time = #{updateTime},</if> |
|
|
|
</trim> |
|
|
|
|