| | |
| | | <result property="switchText" column="switchText"/> |
| | | <result property="switchWav" column="switchWav"/> |
| | | <result property="selfRegex" column="selfRegex"/> |
| | | <result property="selfRegex2" column="selfRegex2"/> |
| | | <result property="isEnable" column="isEnable"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs"/> |
| | | <result property="nodynamiccruxsJson" column="nodynamiccruxs"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaExtemplatescriptVo"> |
| | |
| | | switchText, |
| | | switchWav, |
| | | selfRegex, |
| | | selfRegex2, |
| | | isEnable, |
| | | del_flag, |
| | | update_by, |
| | |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | is_end, |
| | | nodynamiccruxs, |
| | | dynamiccruxs, |
| | | guid |
| | | from ivr_liba_extemplatescript |
| | | </sql> |
| | |
| | | resultMap="IvrLibaExtemplatescriptResult"> |
| | | <include refid="selectIvrLibaExtemplatescriptVo"/> |
| | | <where> |
| | | <if test="extID != null and extID != ''">and extID = #{extID}</if> |
| | | <if test="extID != null">and extID = #{extID}</if> |
| | | <if test="switchID != null ">and switchID = #{switchID}</if> |
| | | <if test="switchText != null and switchText != ''">and switchText = #{switchText}</if> |
| | | <if test="switchWav != null and switchWav != ''">and switchWav = #{switchWav}</if> |
| | | <if test="selfRegex != null and selfRegex != ''">and selfRegex = #{selfRegex}</if> |
| | | <if test="selfRegex2 != null and selfRegex2 != ''">and selfRegex2 = #{selfRegex2}</if> |
| | | <if test="isEnable != null ">and isEnable = #{isEnable}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="isEnd != null">and is_end = #{isEnd}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="queryIvrLibaExtemplatescriptList" parameterType="com.smartor.domain.IvrLibaExtemplatescript" |
| | | resultMap="IvrLibaExtemplatescriptResult"> |
| | | <include refid="selectIvrLibaExtemplatescriptVo"/> |
| | | <where> |
| | | del_flag = 0 |
| | | <if test="IDs != null"> |
| | | and extID in |
| | | <foreach collection="IDs" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript" useGeneratedKeys="true" |
| | | <insert id="insertIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript" |
| | | useGeneratedKeys="true" |
| | | keyProperty="ID"> |
| | | insert into ivr_liba_extemplatescript |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="ID != null">ID,</if> |
| | | <if test="extID != null and extID != ''">extID,</if> |
| | | <if test="extID != null">extID,</if> |
| | | <if test="switchID != null">switchID,</if> |
| | | <if test="switchText != null">switchText,</if> |
| | | <if test="switchWav != null">switchWav,</if> |
| | | <if test="selfRegex != null">selfRegex,</if> |
| | | <if test="selfRegex2 != null">selfRegex2,</if> |
| | | <if test="isEnable != null">isEnable,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="isEnd != null">is_end,</if> |
| | | <if test="dynamiccruxsJson != null">dynamiccruxs,</if> |
| | | <if test="nodynamiccruxsJson != null">nodynamiccruxs,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="ID != null">#{ID},</if> |
| | | <if test="extID != null and extID != ''">#{extID},</if> |
| | | <if test="extID != null ">#{extID},</if> |
| | | <if test="switchID != null">#{switchID},</if> |
| | | <if test="switchText != null">#{switchText},</if> |
| | | <if test="switchWav != null">#{switchWav},</if> |
| | | <if test="selfRegex != null">#{selfRegex},</if> |
| | | <if test="selfRegex2 != null">#{selfRegex2},</if> |
| | | <if test="isEnable != null">#{isEnable},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="isEnd != null">#{isEnd},</if> |
| | | <if test="dynamiccruxsJson != null">#{dynamiccruxsJson},</if> |
| | | <if test="nodynamiccruxsJson != null">#{nodynamiccruxsJson},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript"> |
| | | update ivr_liba_extemplatescript |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="extID != null and extID != ''">extID = #{extID},</if> |
| | | <if test="extID != null ">extID = #{extID},</if> |
| | | <if test="switchID != null">switchID = #{switchID},</if> |
| | | <if test="switchText != null">switchText = #{switchText},</if> |
| | | <if test="switchWav != null">switchWav = #{switchWav},</if> |
| | | <if test="selfRegex != null">selfRegex = #{selfRegex},</if> |
| | | <if test="selfRegex2 != null">selfRegex2 = #{selfRegex2},</if> |
| | | <if test="isEnable != null">isEnable = #{isEnable},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="isEnd != null">is_end = #{isEnd},</if> |
| | | <if test="dynamiccruxsJson != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="nodynamiccruxsJson != null">nodynamiccruxs = #{nodynamiccruxsJson},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaExtemplatescriptByID" parameterType="String"> |
| | | <delete id="deleteIvrLibaExtemplatescriptByID" parameterType="Long"> |
| | | delete |
| | | from ivr_liba_extemplatescript |
| | | where ID = #{ID} |