<?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">
|
<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>
|
|
<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
|
</sql>
|
|
<select id="selectIvrLibaExtemplatescriptList" parameterType="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>
|
</select>
|
|
<select id="selectIvrLibaExtemplatescriptByDetailID" parameterType="String" resultMap="IvrLibaExtemplatescriptResult">
|
<include refid="selectIvrLibaExtemplatescriptVo"/>
|
where DetailID = #{DetailID}
|
</select>
|
|
<insert id="insertIvrLibaExtemplatescript" parameterType="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="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="createBy != null">create_by,</if>
|
<if test="createTime != null">create_time,</if>
|
<if test="isupload != null">isupload,</if>
|
<if test="uploadTime != null">upload_time,</if>
|
<if test="orgid != null">orgid,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="DetailID != null">#{DetailID},</if>
|
<if test="subModuleID != null and subModuleID != ''">#{subModuleID},</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="createBy != null">#{createBy},</if>
|
<if test="createTime != null">#{createTime},</if>
|
<if test="isupload != null">#{isupload},</if>
|
<if test="uploadTime != null">#{uploadTime},</if>
|
<if test="orgid != null">#{orgid},</if>
|
</trim>
|
</insert>
|
|
<update id="updateIvrLibaExtemplatescript" parameterType="IvrLibaExtemplatescript">
|
update ivr_liba_extemplatescript
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="subModuleID != null and subModuleID != ''">subModuleID = #{subModuleID},</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="createBy != null">create_by = #{createBy},</if>
|
<if test="createTime != null">create_time = #{createTime},</if>
|
<if test="isupload != null">isupload = #{isupload},</if>
|
<if test="uploadTime != null">upload_time = #{uploadTime},</if>
|
<if test="orgid != null">orgid = #{orgid},</if>
|
</trim>
|
where DetailID = #{DetailID}
|
</update>
|
|
<delete id="deleteIvrLibaExtemplatescriptByDetailID" parameterType="String">
|
delete from ivr_liba_extemplatescript where DetailID = #{DetailID}
|
</delete>
|
|
<delete id="deleteIvrLibaExtemplatescriptByDetailIDs" parameterType="String">
|
delete from ivr_liba_extemplatescript where DetailID in
|
<foreach item="DetailID" collection="array" open="(" separator="," close=")">
|
#{DetailID}
|
</foreach>
|
</delete>
|
</mapper>
|