| | |
| | | <result property="ID" column="ID"/> |
| | | <result property="templateQuestionNum" column="templateQuestionNum"/> |
| | | <result property="templateID" column="templateID"/> |
| | | <result property="scriptID" column="scriptID"/> |
| | | <result property="scriptid" column="scriptID"/> |
| | | <result property="questionPoint" column="questionPoint"/> |
| | | <result property="questionText" column="questionText"/> |
| | | <result property="questionVoice" column="questionVoice"/> |
| | |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetvalue" column="targettalue"/> |
| | | <result property="questiontitle" column="questiontitle"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | |
| | | targetid, |
| | | targettype, |
| | | targetvalue, |
| | | questiontitle, |
| | | targetOptions, language, playWavOnly, isEnable, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | from ivr_liba_template_script |
| | | </sql> |
| | |
| | | resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="templateQuestionNum != null ">and templateQuestionNum = #{templateQuestionNum}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="questionPoint != null and questionPoint != ''">and questionPoint = #{questionPoint}</if> |
| | |
| | | <if test="submoduleVoice != null and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="questiontitle != null and questiontitle != ''">and questiontitle = #{questiontitle}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplateScript" parameterType="com.smartor.domain.IvrLibaTemplateScript"> |
| | | <insert id="insertIvrLibaTemplateScript" parameterType="com.smartor.domain.IvrLibaTemplateScript" |
| | | useGeneratedKeys="true" |
| | | keyProperty="ID"> |
| | | insert into ivr_liba_template_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">templateQuestionNum,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="scriptID != null">scriptID,</if> |
| | | <if test="scriptid != null">scriptID,</if> |
| | | <if test="questionPoint != null and questionPoint != ''">questionPoint,</if> |
| | | <if test="questionText != null">questionText,</if> |
| | | <if test="questionVoice != null">questionVoice,</if> |
| | |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="questiontitle != null">questiontitle,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">#{templateQuestionNum},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="scriptID != null">#{scriptID},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="questionPoint != null and questionPoint != ''">#{questionPoint},</if> |
| | | <if test="questionText != null">#{questionText},</if> |
| | | <if test="questionVoice != null">#{questionVoice},</if> |
| | |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">templateQuestionNum = #{templateQuestionNum},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="scriptID != null">scriptID = #{scriptID},</if> |
| | | <if test="scriptid != null">scriptID = #{scriptid},</if> |
| | | <if test="questionPoint != null and questionPoint != ''">questionPoint = #{questionPoint},</if> |
| | | <if test="questionText != null">questionText = #{questionText},</if> |
| | | <if test="questionVoice != null">questionVoice = #{questionVoice},</if> |
| | |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="questiontitle != null">questiontitle = #{questiontitle},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | |
| | | <update id="deleteIvrLibaTemplateScriptByID" parameterType="Long"> |
| | | update ivr_liba_template_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | del_flag = 1 |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |