From 52a0bf7637b725f0b6bf18a03962b0636f7074fb Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 22 十二月 2023 18:14:40 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml |  173 ++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 102 insertions(+), 71 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml
index 3b805ad..20b8ad2 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplatetargetMapper.xml
@@ -1,82 +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.IvrLibaTemplatetargetMapper">
-    
-    <resultMap type="IvrLibaTemplatetarget" id="IvrLibaTemplatetargetResult">
-        <result property="templateTargetID"    column="templateTargetID"    />
-        <result property="templateQuestionID"    column="templateQuestionID"    />
-        <result property="templateQuestionNum"    column="templateQuestionNum"    />
-        <result property="nextQuestionNum"    column="nextQuestionNum"    />
-        <result property="templateID"    column="templateID"    />
-        <result property="switchID"    column="switchID"    />
-        <result property="switchDescription"    column="switchDescription"    />
-        <result property="switchText"    column="switchText"    />
-        <result property="switchWav"    column="switchWav"    />
-        <result property="switchTempWav"    column="switchTempWav"    />
-        <result property="targetType"    column="targetType"    />
-        <result property="categoryName"    column="categoryName"    />
-        <result property="targetValue"    column="targetValue"    />
-        <result property="targetID"    column="targetID"    />
-        <result property="questionTargetID"    column="questionTargetID"    />
-        <result property="basicRegex"    column="basicRegex"    />
-        <result property="selfRegex"    column="selfRegex"    />
-        <result property="regexUsedType"    column="regexUsedType"    />
-        <result property="language"    column="language"    />
-        <result property="isEnable"    column="isEnable"    />
-        <result property="isDel"    column="isDel"    />
-        <result property="playType"    column="playType"    />
-        <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.IvrLibaTemplatetarget" id="IvrLibaTemplatetargetResult">
+        <result property="templateTargetID" column="templateTargetID"/>
+        <result property="templateQuestionID" column="templateQuestionID"/>
+        <result property="templateQuestionNum" column="templateQuestionNum"/>
+        <result property="nextQuestionNum" column="nextQuestionNum"/>
+        <result property="templateID" column="templateID"/>
+        <result property="switchID" column="switchID"/>
+        <result property="switchDescription" column="switchDescription"/>
+        <result property="switchText" column="switchText"/>
+        <result property="switchWav" column="switchWav"/>
+        <result property="switchTempWav" column="switchTempWav"/>
+        <result property="targetType" column="targetType"/>
+        <result property="categoryName" column="categoryName"/>
+        <result property="targetValue" column="targetValue"/>
+        <result property="targetID" column="targetID"/>
+        <result property="questionTargetID" column="questionTargetID"/>
+        <result property="basicRegex" column="basicRegex"/>
+        <result property="selfRegex" column="selfRegex"/>
+        <result property="regexUsedType" column="regexUsedType"/>
+        <result property="language" column="language"/>
+        <result property="isEnable" column="isEnable"/>
+        <result property="isDel" column="isDel"/>
+        <result property="playType" column="playType"/>
+        <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="selectIvrLibaTemplatetargetVo">
-        select templateTargetID, templateQuestionID, templateQuestionNum, nextQuestionNum, templateID, switchID, switchDescription, switchText, switchWav, switchTempWav, targetType, categoryName, targetValue, targetID, questionTargetID, basicRegex, selfRegex, regexUsedType, language, isEnable, isDel, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_liba_templatetarget
+        select templateTargetID,
+               templateQuestionID,
+               templateQuestionNum,
+               nextQuestionNum,
+               templateID,
+               switchID,
+               switchDescription,
+               switchText,
+               switchWav,
+               switchTempWav,
+               targetType,
+               categoryName,
+               targetValue,
+               targetID,
+               questionTargetID,
+               basicRegex,
+               selfRegex,
+               regexUsedType, language, isEnable, isDel, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid
+        from ivr_liba_templatetarget
     </sql>
 
-    <select id="selectIvrLibaTemplatetargetList" parameterType="IvrLibaTemplatetarget" resultMap="IvrLibaTemplatetargetResult">
+    <select id="selectIvrLibaTemplatetargetList" parameterType="com.smartor.domain.IvrLibaTemplatetarget"
+            resultMap="IvrLibaTemplatetargetResult">
         <include refid="selectIvrLibaTemplatetargetVo"/>
-        <where>  
-            <if test="templateQuestionID != null  and templateQuestionID != ''"> and templateQuestionID = #{templateQuestionID}</if>
-            <if test="templateQuestionNum != null "> and templateQuestionNum = #{templateQuestionNum}</if>
-            <if test="nextQuestionNum != null "> and nextQuestionNum = #{nextQuestionNum}</if>
-            <if test="templateID != null  and templateID != ''"> and templateID = #{templateID}</if>
-            <if test="switchID != null "> and switchID = #{switchID}</if>
-            <if test="switchDescription != null  and switchDescription != ''"> and switchDescription = #{switchDescription}</if>
-            <if test="switchText != null  and switchText != ''"> and switchText = #{switchText}</if>
-            <if test="switchWav != null  and switchWav != ''"> and switchWav = #{switchWav}</if>
-            <if test="switchTempWav != null  and switchTempWav != ''"> and switchTempWav = #{switchTempWav}</if>
-            <if test="targetType != null  and targetType != ''"> and targetType = #{targetType}</if>
-            <if test="categoryName != null  and categoryName != ''"> and categoryName like concat('%', #{categoryName}, '%')</if>
-            <if test="targetValue != null  and targetValue != ''"> and targetValue = #{targetValue}</if>
-            <if test="targetID != null  and targetID != ''"> and targetID = #{targetID}</if>
-            <if test="questionTargetID != null  and questionTargetID != ''"> and questionTargetID = #{questionTargetID}</if>
-            <if test="basicRegex != null  and basicRegex != ''"> and basicRegex = #{basicRegex}</if>
-            <if test="selfRegex != null  and selfRegex != ''"> and selfRegex = #{selfRegex}</if>
-            <if test="regexUsedType != null  and regexUsedType != ''"> and regexUsedType = #{regexUsedType}</if>
-            <if test="language != null  and language != ''"> and language = #{language}</if>
-            <if test="isEnable != null "> and isEnable = #{isEnable}</if>
-            <if test="isDel != null "> and isDel = #{isDel}</if>
-            <if test="playType != null "> and playType = #{playType}</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="templateQuestionID != null  and templateQuestionID != ''">and templateQuestionID =
+                #{templateQuestionID}
+            </if>
+            <if test="templateQuestionNum != null ">and templateQuestionNum = #{templateQuestionNum}</if>
+            <if test="nextQuestionNum != null ">and nextQuestionNum = #{nextQuestionNum}</if>
+            <if test="templateID != null  and templateID != ''">and templateID = #{templateID}</if>
+            <if test="switchID != null ">and switchID = #{switchID}</if>
+            <if test="switchDescription != null  and switchDescription != ''">and switchDescription =
+                #{switchDescription}
+            </if>
+            <if test="switchText != null  and switchText != ''">and switchText = #{switchText}</if>
+            <if test="switchWav != null  and switchWav != ''">and switchWav = #{switchWav}</if>
+            <if test="switchTempWav != null  and switchTempWav != ''">and switchTempWav = #{switchTempWav}</if>
+            <if test="targetType != null  and targetType != ''">and targetType = #{targetType}</if>
+            <if test="categoryName != null  and categoryName != ''">and categoryName like concat('%', #{categoryName},
+                '%')
+            </if>
+            <if test="targetValue != null  and targetValue != ''">and targetValue = #{targetValue}</if>
+            <if test="targetID != null  and targetID != ''">and targetID = #{targetID}</if>
+            <if test="questionTargetID != null  and questionTargetID != ''">and questionTargetID = #{questionTargetID}
+            </if>
+            <if test="basicRegex != null  and basicRegex != ''">and basicRegex = #{basicRegex}</if>
+            <if test="selfRegex != null  and selfRegex != ''">and selfRegex = #{selfRegex}</if>
+            <if test="regexUsedType != null  and regexUsedType != ''">and regexUsedType = #{regexUsedType}</if>
+            <if test="language != null  and language != ''">and language = #{language}</if>
+            <if test="isEnable != null ">and isEnable = #{isEnable}</if>
+            <if test="isDel != null ">and isDel = #{isDel}</if>
+            <if test="playType != null ">and playType = #{playType}</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="selectIvrLibaTemplatetargetByTemplateTargetID" parameterType="String" resultMap="IvrLibaTemplatetargetResult">
+
+    <select id="selectIvrLibaTemplatetargetByTemplateTargetID" parameterType="String"
+            resultMap="IvrLibaTemplatetargetResult">
         <include refid="selectIvrLibaTemplatetargetVo"/>
         where templateTargetID = #{templateTargetID}
     </select>
-        
-    <insert id="insertIvrLibaTemplatetarget" parameterType="IvrLibaTemplatetarget">
+
+    <insert id="insertIvrLibaTemplatetarget" parameterType="com.smartor.domain.IvrLibaTemplatetarget">
         insert into ivr_liba_templatetarget
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="templateTargetID != null">templateTargetID,</if>
@@ -109,7 +136,7 @@
             <if test="isupload != null">isupload,</if>
             <if test="uploadTime != null">upload_time,</if>
             <if test="orgid != null">orgid,</if>
-         </trim>
+        </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="templateTargetID != null">#{templateTargetID},</if>
             <if test="templateQuestionID != null and templateQuestionID != ''">#{templateQuestionID},</if>
@@ -141,13 +168,15 @@
             <if test="isupload != null">#{isupload},</if>
             <if test="uploadTime != null">#{uploadTime},</if>
             <if test="orgid != null">#{orgid},</if>
-         </trim>
+        </trim>
     </insert>
 
-    <update id="updateIvrLibaTemplatetarget" parameterType="IvrLibaTemplatetarget">
+    <update id="updateIvrLibaTemplatetarget" parameterType="com.smartor.domain.IvrLibaTemplatetarget">
         update ivr_liba_templatetarget
         <trim prefix="SET" suffixOverrides=",">
-            <if test="templateQuestionID != null and templateQuestionID != ''">templateQuestionID = #{templateQuestionID},</if>
+            <if test="templateQuestionID != null and templateQuestionID != ''">templateQuestionID =
+                #{templateQuestionID},
+            </if>
             <if test="templateQuestionNum != null">templateQuestionNum = #{templateQuestionNum},</if>
             <if test="nextQuestionNum != null">nextQuestionNum = #{nextQuestionNum},</if>
             <if test="templateID != null and templateID != ''">templateID = #{templateID},</if>
@@ -181,11 +210,13 @@
     </update>
 
     <delete id="deleteIvrLibaTemplatetargetByTemplateTargetID" parameterType="String">
-        delete from ivr_liba_templatetarget where templateTargetID = #{templateTargetID}
+        delete
+        from ivr_liba_templatetarget
+        where templateTargetID = #{templateTargetID}
     </delete>
 
     <delete id="deleteIvrLibaTemplatetargetByTemplateTargetIDs" parameterType="String">
-        delete from ivr_liba_templatetarget where templateTargetID in 
+        delete from ivr_liba_templatetarget where templateTargetID in
         <foreach item="templateTargetID" collection="array" open="(" separator="," close=")">
             #{templateTargetID}
         </foreach>

--
Gitblit v1.9.3