From 64d3e9657fb45b6415b19e23f483d46a82efe939 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 06 三月 2023 13:56:42 +0800
Subject: [PATCH] 1

---
 src/main/resources/mapper/sys/AttachMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/sys/AttachMapper.xml b/src/main/resources/mapper/sys/AttachMapper.xml
index 0039d80..0e8d504 100644
--- a/src/main/resources/mapper/sys/AttachMapper.xml
+++ b/src/main/resources/mapper/sys/AttachMapper.xml
@@ -44,6 +44,19 @@
         select * from lf.sys_attach where tab = #{tab} and tab_guid = #{tabGuid} and guid = #{guid} limit 1
     </select>
 
+    <select id="selectByTabGuids" resultType="com.lf.server.entity.sys.AttachEntity">
+        select * from lf.sys_attach
+        <where>
+            tab = #{tab}
+            <if test="guids != null">
+                and tab_guid in
+                <foreach item="guid" collection="guids" index="index" open="(" separator="," close=")">
+                    #{guid}
+                </foreach>
+            </if>
+        </where>
+    </select>
+
     <select id="selectByTab" resultType="com.lf.server.entity.sys.AttachEntity">
         select * from lf.sys_attach where tab = #{tab} and tab_guid = #{guid}
     </select>

--
Gitblit v1.9.3