From e180e3a496d6f29d3a3b34016400de9d997c6bd9 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 07 四月 2026 14:42:23 +0800
Subject: [PATCH] 省立同德满意度功能提交

---
 smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml
index 1cf778f..26955c1 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml
@@ -14,23 +14,36 @@
         <result property="seqno" column="seqno"/>
         <result property="guid" column="guid"/>
         <result property="orgid" column="orgid"/>
+        <result property="type" column="type"/>
     </resultMap>
 
     <sql id="selectIvrLibaScriptAssortVo">
-        select id, index_assort_name, guid, orgid,del_flag, create_time, update_time, pid, seqno
+        select id,
+               index_assort_name,
+               guid,
+               orgid,
+               del_flag,
+               create_time,
+               update_time,
+               pid,
+               seqno,
+               type
         from ivr_liba_script_assort
     </sql>
 
     <select id="selectIvrLibaScriptAssortList" parameterType="com.smartor.domain.IvrLibaScriptAssort"
             resultMap="IvrLibaScriptAssortResult">
         <include refid="selectIvrLibaScriptAssortVo"/>
-        where 1=1
-            <if test="indexAssortName != null  and indexAssortName != ''">and index_assort_name like concat('%',
-                #{indexAssortName}, '%')
-            </if>
-            <if test="pid != null ">and pid = #{pid}</if>
-            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
-            and del_flag=0
+        where del_flag=0
+        <if test="indexAssortName != null  and indexAssortName != ''">and index_assort_name like concat('%',
+            #{indexAssortName}, '%')
+        </if>
+        <if test="type != null  and type != ''">and type like concat('%',
+            #{type}, '%')
+        </if>
+        <if test="pid != null ">and pid = #{pid}</if>
+        <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
+        and del_flag=0
         order by seqno asc
     </select>
 
@@ -57,6 +70,7 @@
             <if test="seqno != null">seqno,</if>
             <if test="guid != null">guid,</if>
             <if test="orgid != null">orgid,</if>
+            <if test="type != null">type,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="indexAssortName != null and indexAssortName != ''">#{indexAssortName},</if>
@@ -67,6 +81,7 @@
             <if test="seqno != null">#{seqno},</if>
             <if test="guid != null">#{guid},</if>
             <if test="orgid != null">#{orgid},</if>
+            <if test="type != null">#{type},</if>
         </trim>
     </insert>
 
@@ -81,6 +96,7 @@
             <if test="seqno != null">seqno = #{seqno},</if>
             <if test="guid != null">guid = #{guid},</if>
             <if test="orgid != null">orgid = #{orgid},</if>
+            <if test="type != null">type = #{type},</if>
         </trim>
         where id = #{id}
     </update>
@@ -88,7 +104,7 @@
     <update id="deleteIvrLibaScriptAssortById" parameterType="Long">
         update ivr_liba_script_assort
         <trim prefix="SET" suffixOverrides=",">
-           del_flag = 1
+            del_flag = 1
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3