From e52b0e34fc06372aab64c30b526ec289b99c9af7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 19 六月 2024 10:43:47 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml | 52 ++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml
index c0636dc..ad8ca58 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaExtemplatescriptMapper.xml
@@ -11,6 +11,7 @@
<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"/>
@@ -21,7 +22,10 @@
<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">
@@ -31,6 +35,7 @@
switchText,
switchWav,
selfRegex,
+ selfRegex2,
isEnable,
del_flag,
update_by,
@@ -41,6 +46,9 @@
upload_time,
orgid,
pid,
+ is_end,
+ nodynamiccruxs,
+ dynamiccruxs,
guid
from ivr_liba_extemplatescript
</sql>
@@ -49,17 +57,33 @@
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>
@@ -68,15 +92,17 @@
where ID = #{ID}
</select>
- <insert id="insertIvrLibaExtemplatescript" parameterType="com.smartor.domain.IvrLibaExtemplatescript">
+ <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>
@@ -88,14 +114,17 @@
<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>
@@ -107,17 +136,21 @@
<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>
@@ -129,11 +162,14 @@
<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}
--
Gitblit v1.9.3