From d20202956f68bd5a7ea98d70f1ff11fe99cf9e5c Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期五, 16 九月 2022 10:43:48 +0800
Subject: [PATCH] fix

---
 dao/src/main/resources/mapper/PlatformFileMapper.xml |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/dao/src/main/resources/mapper/PlatformFileMapper.xml b/dao/src/main/resources/mapper/PlatformFileMapper.xml
index a89b68f..773ffeb 100644
--- a/dao/src/main/resources/mapper/PlatformFileMapper.xml
+++ b/dao/src/main/resources/mapper/PlatformFileMapper.xml
@@ -18,22 +18,19 @@
         ,file_name,file_size,
         create_time,update_time
     </sql>
-    <select id="fileLiet" resultType="com.sandu.ximon.dao.bo.PlatformFileListBo">
+
+    <select id="fileList" resultType="com.sandu.ximon.dao.bo.PlatformFileListBo">
         SELECT
         *
         FROM
         platform_file t1
-        LEFT JOIN platform_file_user t2 ON t1.file_Id = t2.file_Id
-        WHERE
-        1 =1
-        <if test="userId!=null">
-            AND
-            t2.user_id = #{userId}
-        </if>
-        <if test="keyword != null and keyword != ''">
-            AND (
-            t1.file_name LIKE CONCAT('%', #{keyword},'%')
-            )
-        </if>
+        <where>
+            <if test="fileIdList!=null">
+                t1.file_id IN
+                <foreach collection="fileIdList" open="(" close=")" item="fileId" separator=",">
+                    #{fileId}
+                </foreach>
+            </if>
+        </where>
     </select>
 </mapper>

--
Gitblit v1.9.3