From 562a960261b75d70abd65aa10528f09aeece94e8 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 24 九月 2024 09:49:23 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml | 173 +++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 117 insertions(+), 56 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml
index bc15d9b..ad8ca58 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml
@@ -1,64 +1,109 @@
<?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="selfRegex2" column="selfRegex2"/>
+ <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="isEnd" column="is_end"/>
+ <result property="guid" column="guid"/>
+ <result property="dynamiccruxsJson" column="dynamiccruxs"/>
+ <result property="nodynamiccruxsJson" column="nodynamiccruxs"/>
</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,
+ selfRegex2,
+ isEnable,
+ del_flag,
+ update_by,
+ update_time,
+ create_by,
+ create_time,
+ isupload,
+ upload_time,
+ orgid,
+ pid,
+ is_end,
+ nodynamiccruxs,
+ dynamiccruxs,
+ 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 = #{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="selectIvrLibaExtemplatescriptByDetailID" parameterType="String" resultMap="IvrLibaExtemplatescriptResult">
+
+ <select id="queryIvrLibaExtemplatescriptList" parameterType="com.smartor.domain.IvrLibaExtemplatescript"
+ resultMap="IvrLibaExtemplatescriptResult">
<include refid="selectIvrLibaExtemplatescriptVo"/>
- where DetailID = #{DetailID}
+ <where>
+ del_flag = 0
+ <if test="IDs != null">
+ and extID in
+ <foreach collection="IDs" item="item" open="(" separator="," close=")">
+ #{item}
+ </foreach>
+ </if>
+ </where>
</select>
-
- <insert id="insertIvrLibaExtemplatescript" parameterType="IvrLibaExtemplatescript">
+
+ <select id="selectIvrLibaExtemplatescriptByID" parameterType="String" resultMap="IvrLibaExtemplatescriptResult">
+ <include refid="selectIvrLibaExtemplatescriptVo"/>
+ where ID = #{ID}
+ </select>
+
+ <insert id="insertIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript"
+ useGeneratedKeys="true"
+ keyProperty="ID">
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="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="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>
@@ -67,16 +112,20 @@
<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>
+ <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="DetailID != null">#{DetailID},</if>
- <if test="subModuleID != null and subModuleID != ''">#{subModuleID},</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="isDel != null">#{isDel},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
@@ -85,19 +134,24 @@
<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>
+ <if test="isEnd != null">#{isEnd},</if>
+ <if test="dynamiccruxsJson != null">#{dynamiccruxsJson},</if>
+ <if test="nodynamiccruxsJson != null">#{nodynamiccruxsJson},</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 ">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="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>
@@ -106,18 +160,25 @@
<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>
+ <if test="isEnd != null">is_end = #{isEnd},</if>
+ <if test="dynamiccruxsJson != null">dynamiccruxs = #{dynamiccruxsJson},</if>
+ <if test="nodynamiccruxsJson != null">nodynamiccruxs = #{nodynamiccruxsJson},</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="Long">
+ 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>
\ No newline at end of file
--
Gitblit v1.9.3