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/IvrLibaScriptTargetMapper.xml |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetMapper.xml
index 62e59ce..24bebec 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetMapper.xml
@@ -70,12 +70,13 @@
     <select id="selectIvrLibaScriptTargetList" parameterType="com.smartor.domain.IvrLibaScriptTarget"
             resultMap="IvrLibaScriptTargetResult">
         <include refid="selectIvrLibaScriptTargetVo"/>
-        <where>
+        WHERE 1=1
+
             <if test="scriptid != null ">and scriptid = #{scriptid}</if>
             <if test="targetID != null ">and targetID = #{targetID}</if>
             <if test="targetType != null  and targetType != ''">and targetType = #{targetType}</if>
             <if test="categoryName != null  and categoryName != ''">and categoryName like concat('%', #{categoryName},
-                '%')
+                AND '%')
             </if>
             <if test="targetValue != null  and targetValue != ''">and targetValue = #{targetValue}</if>
             <if test="basicRegex != null  and basicRegex != ''">and basicRegex = #{basicRegex}</if>
@@ -95,7 +96,7 @@
             <if test="warnup != null ">and warnup = #{warnup}</if>
             <if test="warndown != null">and warndown = #{warndown}</if>
             <if test="picturePath != null  and picturePath != ''">and picture_path = #{picturePath}</if>
-        </where>
+        
     </select>
 
     <select id="selectIvrLibaScriptTargetByQuestionTargetID" parameterType="String"

--
Gitblit v1.9.3