| | |
| | | <result property="nextQuestion" column="next_question"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="optionCode" column="option_code"/> |
| | | <result property="isUserOperation" column="is_user_operation"/> |
| | | <result property="score" column="score"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateTargetoptionVo"> |
| | | select id, |
| | | taskid, |
| | | is_end, |
| | | templateID, |
| | | score, |
| | | is_user_operation, |
| | | appenddesc, |
| | | targetid, |
| | | option_code, |
| | |
| | | <include refid="selectIvrTaskTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | |
| | | <if test="nextQuestion != null ">and next_question = #{nextQuestion}</if> |
| | | <if test="appenddesc != null ">and appenddesc = #{appenddesc}</if> |
| | | <if test="optionCode != null ">and option_code = #{optionCode}</if> |
| | | <if test="isUserOperation != null ">and is_user_operation = #{isUserOperation}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="optionCode != null ">option_code,</if> |
| | | <if test="isUserOperation != null ">is_user_operation,</if> |
| | | <if test="score != null ">score,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="optionCode != null ">#{optionCode},</if> |
| | | <if test="isUserOperation != null ">#{isUserOperation},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="optionCode != null ">option_code = #{optionCode},</if> |
| | | <if test="isUserOperation != null ">is_user_operation = #{isUserOperation},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |