| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrLibaExtemplatescriptMapper"> |
| | | |
| | | <resultMap type="IvrLibaExtemplatescript" id="IvrLibaExtemplatescriptResult"> |
| | | <result property="DetailID" column="DetailID" /> |
| | | <result property="subModuleID" column="subModuleID" /> |
| | | <result property="switchID" column="switchID" /> |
| | | <result property="switchText" column="switchText" /> |
| | | <result property="switchWav" column="switchWav" /> |
| | | <result property="selfRegex" column="selfRegex" /> |
| | | <result property="isEnable" column="isEnable" /> |
| | | <result property="isDel" column="isDel" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="orgid" column="orgid" /> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaExtemplatescript" id="IvrLibaExtemplatescriptResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="extID" column="extID"/> |
| | | <result property="switchID" column="switchID"/> |
| | | <result property="switchText" column="switchText"/> |
| | | <result property="switchWav" column="switchWav"/> |
| | | <result property="selfRegex" column="selfRegex"/> |
| | | <result property="isEnable" column="isEnable"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaExtemplatescriptVo"> |
| | | select DetailID, subModuleID, switchID, switchText, switchWav, selfRegex, isEnable, isDel, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_liba_extemplatescript |
| | | select ID, |
| | | extID, |
| | | switchID, |
| | | switchText, |
| | | switchWav, |
| | | selfRegex, |
| | | isEnable, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | guid |
| | | from ivr_liba_extemplatescript |
| | | </sql> |
| | | |
| | | <select id="selectIvrLibaExtemplatescriptList" parameterType="IvrLibaExtemplatescript" resultMap="IvrLibaExtemplatescriptResult"> |
| | | <select id="selectIvrLibaExtemplatescriptList" parameterType="com.smartor.domain.IvrLibaExtemplatescript" |
| | | resultMap="IvrLibaExtemplatescriptResult"> |
| | | <include refid="selectIvrLibaExtemplatescriptVo"/> |
| | | <where> |
| | | <if test="subModuleID != null and subModuleID != ''"> and subModuleID = #{subModuleID}</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="isEnable != null "> and isEnable = #{isEnable}</if> |
| | | <if test="isDel != null "> and isDel = #{isDel}</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> |
| | | <where> |
| | | <if test="extID != null and extID != ''">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="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> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrLibaExtemplatescriptByDetailID" parameterType="String" resultMap="IvrLibaExtemplatescriptResult"> |
| | | |
| | | <select id="selectIvrLibaExtemplatescriptByID" parameterType="String" resultMap="IvrLibaExtemplatescriptResult"> |
| | | <include refid="selectIvrLibaExtemplatescriptVo"/> |
| | | where DetailID = #{DetailID} |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaExtemplatescript" parameterType="IvrLibaExtemplatescript"> |
| | | |
| | | <insert id="insertIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript"> |
| | | insert into ivr_liba_extemplatescript |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="DetailID != null">DetailID,</if> |
| | | <if test="subModuleID != null and subModuleID != ''">subModuleID,</if> |
| | | <if test="ID != null">ID,</if> |
| | | <if test="extID != null and extID != ''">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="isEnable != null">isEnable,</if> |
| | | <if test="isDel != null">isDel,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | </trim> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="DetailID != null">#{DetailID},</if> |
| | | <if test="subModuleID != null and subModuleID != ''">#{subModuleID},</if> |
| | | <if test="ID != null">#{ID},</if> |
| | | <if test="extID != null and extID != ''">#{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="isEnable != null">#{isEnable},</if> |
| | | <if test="isDel != null">#{isDel},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | </trim> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrLibaExtemplatescript" parameterType="IvrLibaExtemplatescript"> |
| | | <update id="updateIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript"> |
| | | update ivr_liba_extemplatescript |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="subModuleID != null and subModuleID != ''">subModuleID = #{subModuleID},</if> |
| | | <if test="extID != null and extID != ''">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="isEnable != null">isEnable = #{isEnable},</if> |
| | | <if test="isDel != null">isDel = #{isDel},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where DetailID = #{DetailID} |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaExtemplatescriptByDetailID" parameterType="String"> |
| | | delete from ivr_liba_extemplatescript where DetailID = #{DetailID} |
| | | <delete id="deleteIvrLibaExtemplatescriptByID" parameterType="String"> |
| | | delete |
| | | from ivr_liba_extemplatescript |
| | | where ID = #{ID} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrLibaExtemplatescriptByDetailIDs" parameterType="String"> |
| | | delete from ivr_liba_extemplatescript where DetailID in |
| | | <foreach item="DetailID" collection="array" open="(" separator="," close=")"> |
| | | #{DetailID} |
| | | <delete id="deleteIvrLibaExtemplatescriptByIDs" parameterType="String"> |
| | | delete from ivr_liba_extemplatescript where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |