| | |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaScript" id="IvrLibaScriptResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="questiontitle" column="questiontitle"/> |
| | | <result property="questionText" column="questionText"/> |
| | | <result property="questionvoice" column="questionvoice"/> |
| | | <result property="scriptTopic" column="script_topic"/> |
| | | <result property="scriptContent" column="script_content"/> |
| | | <result property="scriptVoice" column="script_voice"/> |
| | | <result property="scriptDesc" column="script_desc"/> |
| | | <result property="noMatchText" column="nomatchtext"/> |
| | | <result property="nomatchvoice" column="nomatchvoice"/> |
| | | <result property="slienceText" column="sliencetext"/> |
| | |
| | | <result property="submodulevoice" column="submodulevoice"/> |
| | | <result property="noClearlyText" column="noclearlytext"/> |
| | | <result property="noclearlyvoice" column="noclearlyvoice"/> |
| | | <result property="questiontype" column="questiontype"/> |
| | | <result property="scriptType" column="script_type"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | |
| | | campus, |
| | | deptNames, |
| | | deptIds, |
| | | questiontitle, |
| | | script_topic, |
| | | value_type, |
| | | reply, |
| | | isAvailable, |
| | | questionText, |
| | | questionvoice, |
| | | script_content, |
| | | script_desc, |
| | | script_voice, |
| | | nomatchtext, |
| | | nomatchvoice, |
| | | sliencetext, |
| | |
| | | submodulevoice, |
| | | noclearlytext, |
| | | noclearlyvoice, |
| | | questiontype, |
| | | script_type, |
| | | targetid, |
| | | targetname, |
| | | tag, |
| | |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="deptIds != null and deptIds != ''">and deptIds = #{deptIds}</if> |
| | | <if test="deptNames != null and deptNames != ''">and deptNames like concat('%', #{deptNames}, '%')</if> |
| | | <if test="questiontitle != null and questiontitle != ''">and questiontitle like concat('%', #{questiontitle}, '%')</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic like concat('%', #{scriptTopic}, '%')</if> |
| | | <if test="campus != null and campus != ''">and campus = #{campus}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | | <if test="isAvailable != null and isAvailable != ''">and isAvailable = #{isAvailable}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="questionText != null and questionText != ''">and questionText = #{questionText}</if> |
| | | <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="scriptDesc != null and scriptDesc != ''">and script_desc = #{scriptDesc}</if> |
| | | <if test="scriptVoice != null and scriptVoice != ''">and script_voice = #{scriptVoice}</if> |
| | | <if test="noMatchText != null and noMatchText != ''">and nomatchtext = #{noMatchText}</if> |
| | | <if test="nomatchvoice != null and nomatchvoice != ''">and nomatchvoice = #{nomatchvoice}</if> |
| | | <if test="slienceText != null and slienceText != ''">and sliencetext = #{slienceText}</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="questiontype != null and questiontype != ''">and questiontype = #{questiontype}</if> |
| | | <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | |
| | | keyProperty="id"> |
| | | insert into ivr_liba_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="questiontitle != null">questiontitle,</if> |
| | | <if test="scriptTopic != null">script_topic,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="campus != null">campus,</if> |
| | | <if test="deptIds != null">deptIds,</if> |
| | |
| | | <if test="tag != null">tag,</if> |
| | | <if test="isAvailable != null">isAvailable,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="questionText != null">questionText,</if> |
| | | <if test="questionvoice != null">questionvoice,</if> |
| | | <if test="scriptContent != null">script_content,</if> |
| | | <if test="scriptDesc != null">script_desc,</if> |
| | | <if test="scriptVoice != null">script_voice,</if> |
| | | <if test="noMatchText != null">nomatchtext,</if> |
| | | <if test="nomatchvoice != null">nomatchvoice,</if> |
| | | <if test="slienceText != null">sliencetext,</if> |
| | |
| | | <if test="submodulevoice != null">submodulevoice,</if> |
| | | <if test="noClearlyText != null">noclearlytext,</if> |
| | | <if test="noclearlyvoice != null">noclearlyvoice,</if> |
| | | <if test="questiontype != null">questiontype,</if> |
| | | <if test="scriptType != null">script_type,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null">targetname,</if> |
| | | <if test="targetoptions != null">targetoptions,</if> |
| | |
| | | <if test="targetdesc != null">targetdesc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | | <if test="scriptTopic != null">#{scriptTopic},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | | <if test="deptIds != null">#{deptIds},</if> |
| | |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="isAvailable != null">#{isAvailable},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="questionText != null">#{questionText},</if> |
| | | <if test="questionvoice != null">#{questionvoice},</if> |
| | | <if test="scriptContent != null">#{scriptContent},</if> |
| | | <if test="scriptDesc != null">#{scriptDesc},</if> |
| | | <if test="scriptVoice != null">#{scriptVoice},</if> |
| | | <if test="noMatchText != null">#{noMatchText},</if> |
| | | <if test="nomatchvoice != null">#{nomatchvoice},</if> |
| | | <if test="slienceText != null">#{slienceText},</if> |
| | |
| | | <if test="submodulevoice != null">#{submodulevoice},</if> |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noclearlyvoice != null">#{noclearlyvoice},</if> |
| | | <if test="questiontype != null">#{questiontype},</if> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetname != null">#{targetname},</if> |
| | | <if test="targetoptions != null">#{targetoptions},</if> |
| | |
| | | <update id="updateIvrLibaScript" parameterType="com.smartor.domain.IvrLibaScript"> |
| | | update ivr_liba_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="questiontitle != null">questiontitle = #{questiontitle},</if> |
| | | <if test="scriptTopic != null">script_topic = #{scriptTopic},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="isAvailable != null">isAvailable = #{isAvailable},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="questionText != null">questionText = #{questionText},</if> |
| | | <if test="questionvoice != null">questionvoice = #{questionvoice},</if> |
| | | <if test="scriptContent != null">script_content = #{scriptContent},</if> |
| | | <if test="scriptDesc != null">script_desc = #{scriptDesc},</if> |
| | | <if test="scriptVoice != null">script_voice = #{scriptVoice},</if> |
| | | <if test="noMatchText != null">nomatchtext = #{noMatchText},</if> |
| | | <if test="nomatchvoice != null">nomatchvoice = #{nomatchvoice},</if> |
| | | <if test="slienceText != null">sliencetext = #{slienceText},</if> |
| | |
| | | <if test="submodulevoice != null">submodulevoice = #{submodulevoice},</if> |
| | | <if test="noClearlyText != null">noclearlytext = #{noClearlyText},</if> |
| | | <if test="noclearlyvoice != null">noclearlyvoice = #{noclearlyvoice},</if> |
| | | <if test="questiontype != null">questiontype = #{questiontype},</if> |
| | | <if test="scriptType != null">script_type = #{scriptType},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetname != null">targetname = #{targetname},</if> |
| | | <if test="targetoptions != null">targetoptions = #{targetoptions},</if> |