|
|
@ -13,6 +13,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="status" column="status" /> |
|
|
<result property="status" column="status" /> |
|
|
<result property="creator" column="creator" /> |
|
|
<result property="creator" column="creator" /> |
|
|
<result property="option" column="option" /> |
|
|
<result property="option" column="option" /> |
|
|
|
|
|
<result property="ask" column="ask" /> |
|
|
<result property="answer" column="answer" /> |
|
|
<result property="answer" column="answer" /> |
|
|
<result property="uploadPath" column="upload_path" /> |
|
|
<result property="uploadPath" column="upload_path" /> |
|
|
<result property="nextQuestionId" column="next_question_id" /> |
|
|
<result property="nextQuestionId" column="next_question_id" /> |
|
|
@ -21,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectSceneQuestionVo"> |
|
|
<sql id="selectSceneQuestionVo"> |
|
|
select guid, code, name, parent_id, role_id, status, creator, create_time, answer, upload_path, `option`, next_question_id, update_time from scene_question |
|
|
select guid, code, name, parent_id, role_id, status, creator, create_time, ask, answer, upload_path, `option`, next_question_id, update_time from scene_question |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectSceneQuestionList" parameterType="SceneQuestion" resultMap="SceneQuestionResult"> |
|
|
<select id="selectSceneQuestionList" parameterType="SceneQuestion" resultMap="SceneQuestionResult"> |
|
|
@ -56,6 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="roleId != null and roleId != ''">role_id,</if> |
|
|
<if test="roleId != null and roleId != ''">role_id,</if> |
|
|
<if test="status != null ">status,</if> |
|
|
<if test="status != null ">status,</if> |
|
|
<if test="option != null and option != ''">`option`,</if> |
|
|
<if test="option != null and option != ''">`option`,</if> |
|
|
|
|
|
<if test="ask != null and ask != ''">ask,</if> |
|
|
<if test="answer != null and answer != ''">answer,</if> |
|
|
<if test="answer != null and answer != ''">answer,</if> |
|
|
<if test="uploadPath != null and uploadPath != ''">upload_path,</if> |
|
|
<if test="uploadPath != null and uploadPath != ''">upload_path,</if> |
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
<if test="creator != null and creator != ''">creator,</if> |
|
|
@ -69,6 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="roleId != null and roleId != ''">#{roleId},</if> |
|
|
<if test="roleId != null and roleId != ''">#{roleId},</if> |
|
|
<if test="status != null ">#{status},</if> |
|
|
<if test="status != null ">#{status},</if> |
|
|
<if test="option != null and option != ''">#{option},</if> |
|
|
<if test="option != null and option != ''">#{option},</if> |
|
|
|
|
|
<if test="ask != null and ask != ''">#{ask},</if> |
|
|
<if test="answer != null and answer != ''">#{answer},</if> |
|
|
<if test="answer != null and answer != ''">#{answer},</if> |
|
|
<if test="uploadPath != null and uploadPath != ''">#{uploadPath},</if> |
|
|
<if test="uploadPath != null and uploadPath != ''">#{uploadPath},</if> |
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
<if test="creator != null and creator != ''">#{creator},</if> |
|
|
@ -85,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="roleId != null and roleId != ''">role_id = #{roleId},</if> |
|
|
<if test="roleId != null and roleId != ''">role_id = #{roleId},</if> |
|
|
<if test="status != null ">status = #{status},</if> |
|
|
<if test="status != null ">status = #{status},</if> |
|
|
<if test="option != null and option != ''">`option` = #{option},</if> |
|
|
<if test="option != null and option != ''">`option` = #{option},</if> |
|
|
|
|
|
<if test="ask != null and ask != ''">ask = #{ask},</if> |
|
|
<if test="answer != null and answer != ''">answer = #{answer},</if> |
|
|
<if test="answer != null and answer != ''">answer = #{answer},</if> |
|
|
<if test="uploadPath != null and uploadPath != ''">upload_path = #{uploadPath},</if> |
|
|
<if test="uploadPath != null and uploadPath != ''">upload_path = #{uploadPath},</if> |
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
<if test="creator != null and creator != ''">creator = #{creator},</if> |
|
|
|