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

---
 smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionWjxMapper.xml |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionWjxMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionWjxMapper.xml
index 718353e..e90e213 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionWjxMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateTargetoptionWjxMapper.xml
@@ -69,10 +69,12 @@
             parameterType="com.smartor.domain.SvyLibTemplateTargetoptionWjx"
             resultMap="SvyLibTemplateTargetoptionWjxResult">
         <include refid="selectSvyLibTemplateTargetoptionWjxVo"/>
-        <where>
+        WHERE 1=1
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+
             <if test="groupid != null  and groupid != ''">and groupid = #{groupid}</if>
-            <if test="categoryName != null  and categoryName != ''">and categoryName like concat('%', #{categoryName},
-                '%')
+            <if test="categoryName != null  and categoryName != ''">
+                and categoryName like concat('%', #{categoryName},'%')
             </if>
             <if test="scriptid != null ">and scriptid = #{scriptid}</if>
             <if test="templateID != null ">and templateID = #{templateID}</if>
@@ -101,7 +103,7 @@
             <if test="appendflag != null  and appendflag != ''">and appendflag = #{appendflag}</if>
             <if test="appenddesc != null  and appenddesc != ''">and appenddesc = #{appenddesc}</if>
             <if test="sort != null">and sort = #{sort}</if>
-        </where>
+        
     </select>
 
     <select id="selectSvyLibTemplateTargetoptionWjxById" parameterType="Long"

--
Gitblit v1.9.3