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/PatArchivetagMapper.xml |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml
index 9dcda39..099904b 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchivetagMapper.xml
@@ -56,15 +56,16 @@
         a.patid,
         b.tagname
         from pat_archivetag a ,base_tag b
-        <where>
-            a.tagid=b.tagid
+        WHERE 1=1
+
+            AND a.tagid=b.tagid
             <if test="tagcategoryid != null ">and a.tagcategoryid = #{tagcategoryid}</if>
             <if test="tagid != null ">and a.tagid = #{tagid}</if>
             <if test="orgid != null  and orgid != ''">and a.orgid = #{orgid}</if>
             <if test="isupload != null ">and a.isupload = #{isupload}</if>
             <if test="uploadTime != null ">and a.upload_time = #{uploadTime}</if>
             <if test="patid != null ">and a.patid = #{patid}</if>
-        </where>
+        
     </select>
 
     <select id="selectPatArchivetagById" parameterType="Long" resultMap="PatArchivetagResult">
@@ -132,10 +133,11 @@
         <trim prefix="SET" suffixOverrides=",">
             <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
         </trim>
-        <where>
+        WHERE 1=1
+
             <if test="tagid != null">and tagid = #{tagid}</if>
             <if test="patid != null">and patid = #{patid}</if>
-        </where>
+        
     </delete>
 
     <delete id="deletePatArchivetagByIds" parameterType="String">

--
Gitblit v1.9.3