| | |
| | | <result property="scriptType" column="script_type"/> |
| | | <result property="scriptContent" column="script_content"/> |
| | | <result property="sort" column="sort"/> |
| | | <result property="score" column="score"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateScriptVo"> |
| | |
| | | taskid, |
| | | sort, |
| | | script_type, |
| | | score, |
| | | branch_flag, |
| | | branch_nextscriptno, |
| | | next_scriptno, |
| | |
| | | <include refid="selectIvrTaskTemplateScriptVo"/> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="sort != null ">and sort = #{sort}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="questionPoint != null and questionPoint != ''">and questionPoint = #{questionPoint}</if> |
| | |
| | | <if test="scriptContent != null and scriptContent != ''">script_content,</if> |
| | | <if test="sort != null ">sort,</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">next_scriptno,</if> |
| | | <if test="score != null ">score,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="scriptContent != null and scriptContent != ''">#{scriptContent},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">#{nextScriptno},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="scriptContent != null and scriptContent != ''">script_content = #{scriptContent},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="nextScriptno != null and nextScriptno != ''">next_scriptno = #{nextScriptno},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |