From ec23ec3d3dc4ec1ba7d79ba4f46ae2c31d5a16a9 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 10:49:10 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

---
 smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
index 255d283..5ccafde 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -48,12 +48,14 @@
         <result property="sort" column="sort"/>
         <result property="score" column="score"/>
         <result property="groupName" column="group_name"/>
+        <result property="assortid" column="assortid"/>
     </resultMap>
 
     <sql id="selectIvrLibaTemplateScriptVo">
         select id,
                scriptno,
                sort,
+               assortid,
                group_name,
                branch_flag,
                branch_nextscriptno,
@@ -99,9 +101,11 @@
     <select id="selectIvrLibaTemplateScriptList" parameterType="com.smartor.domain.IvrLibaTemplateScript"
             resultMap="IvrLibaTemplateScriptResult">
         <include refid="selectIvrLibaTemplateScriptVo"/>
-        <where>
-            del_flag=0
+        WHERE 1=1
+
+            AND del_flag=0
             <if test="scriptno != null ">and scriptno = #{scriptno}</if>
+            <if test="assortid != null ">and assortid = #{assortid}</if>
             <if test="groupName != null ">and group_name = #{groupName}</if>
             <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if>
             <if test="templateid != null ">and templateid = #{templateid}</if>
@@ -123,11 +127,11 @@
                 #{branchNextscriptno}
             </if>
             <if test="categoryName != null  and categoryName != ''">and categoryName like concat('%', #{categoryName},
-                '%')
+                AND '%')
             </if>
             <if test="scriptTopic != null  and scriptTopic != ''">and script_topic like concat('%',
                 #{scriptTopic},
-                '%')
+                AND '%')
             </if>
             <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if>
             <if test="valueType != null ">and value_type = #{valueType}</if>
@@ -142,7 +146,7 @@
             <if test="scriptType != null">and script_type = #{scriptType}</if>
             <if test="sort != null">and sort = #{sort}</if>
             <if test="score != null">and score = #{score}</if>
-        </where>
+        
     </select>
 
     <select id="selectIvrLibaTemplateScriptByID" parameterType="Long" resultMap="IvrLibaTemplateScriptResult">
@@ -196,6 +200,7 @@
             <if test="score != null ">score,</if>
             <if test="ivrtext != null ">ivrtext,</if>
             <if test="groupName != null ">group_name,</if>
+            <if test="assortid != null ">assortid,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="scriptno != null">#{scriptno},</if>
@@ -239,6 +244,7 @@
             <if test="score != null ">#{score},</if>
             <if test="ivrtext != null ">#{ivrtext},</if>
             <if test="groupName != null ">#{groupName},</if>
+            <if test="assortid != null ">#{assortid},</if>
         </trim>
     </insert>
 
@@ -284,6 +290,7 @@
             <if test="branchFlag != null  and branchFlag != ''">branch_flag = #{branchFlag},</if>
             <if test="score != null ">score = #{score},</if>
             <if test="groupName != null ">group_name = #{groupName},</if>
+            <if test="assortid != null ">assortid = #{assortid},</if>
             <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
                 #{branchNextscriptno},
             </if>

--
Gitblit v1.9.3