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

diff --git a/smartor/src/main/resources/mapper/smartor/BaseTagMapper.xml b/smartor/src/main/resources/mapper/smartor/BaseTagMapper.xml
index f1e3884..838fd9d 100644
--- a/smartor/src/main/resources/mapper/smartor/BaseTagMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/BaseTagMapper.xml
@@ -41,7 +41,8 @@
 
     <select id="selectBaseTagList" parameterType="com.smartor.domain.BaseTag" resultMap="BaseTagResult">
         <include refid="selectBaseTagVo"/>
-        <where>
+        WHERE 1=1
+
             <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if>
             <if test="tagname != null  and tagname != ''">and tagname like concat('%', #{tagname}, '%')</if>
             <if test="tagdescription != null  and tagdescription != ''">and tagdescription = #{tagdescription}</if>
@@ -49,11 +50,12 @@
             <if test="isupload != null ">and isupload = #{isupload}</if>
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="isenable != null ">and isenable = #{isenable}</if>
-        </where>
+        
     </select>
     <select id="selectBaseTagListByTagname" parameterType="com.smartor.domain.BaseTag" resultMap="BaseTagResult">
         <include refid="selectBaseTagVo"/>
-        <where>
+        WHERE 1=1
+
             <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if>
             <if test="tagname != null  and tagname != ''">and tagname =#{tagname}</if>
             <if test="tagdescription != null  and tagdescription != ''">and tagdescription = #{tagdescription}</if>
@@ -61,7 +63,7 @@
             <if test="isupload != null ">and isupload = #{isupload}</if>
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="isenable != null ">and isenable = #{isenable}</if>
-        </where>
+        
     </select>
 
     <select id="selectBaseTagByTagid" parameterType="Long" resultMap="BaseTagResult">

--
Gitblit v1.9.3