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 |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
index 31351c6..5ccafde 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -101,8 +101,9 @@
     <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>
@@ -126,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>
@@ -145,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">

--
Gitblit v1.9.3