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

diff --git a/smartor/src/main/resources/mapper/smartor/MinioFileMapper.xml b/smartor/src/main/resources/mapper/smartor/MinioFileMapper.xml
index 3de25fe..4740285 100644
--- a/smartor/src/main/resources/mapper/smartor/MinioFileMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/MinioFileMapper.xml
@@ -41,12 +41,13 @@
 
     <select id="selectMinioFileList" parameterType="com.smartor.domain.MinioFile" resultMap="MinioFileResult">
         <include refid="selectMinioFileVo"/>
-        <where>
+        WHERE 1=1
+
             <if test="originalFileName != null  and originalFileName != ''">and original_file_name like concat('%',
                 #{originalFileName}, '%')
             </if>
             <if test="fileExtName != null  and fileExtName != ''">and file_ext_name like concat('%', #{fileExtName},
-                '%')
+                AND '%')
             </if>
             <if test="fileSize != null ">and file_size = #{fileSize}</if>
             <if test="orgid != null ">and orgid = #{orgid}</if>
@@ -54,7 +55,7 @@
             <if test="mime != null  and mime != ''">and mime = #{mime}</if>
             <if test="fileUrl != null  and fileUrl != ''">and file_url = #{fileUrl}</if>
             <if test="isDelete != null ">and is_delete = #{isDelete}</if>
-        </where>
+        
     </select>
 
     <select id="selectMinioFileById" parameterType="Long" resultMap="MinioFileResult">

--
Gitblit v1.9.3