From 44c9a9a4f3543fd2d0ec6bc66f952e5f82942544 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 06 三月 2023 12:07:33 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/sys/AttachMapper.xml | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/sys/AttachMapper.xml b/src/main/resources/mapper/sys/AttachMapper.xml index 41a0e3d..0039d80 100644 --- a/src/main/resources/mapper/sys/AttachMapper.xml +++ b/src/main/resources/mapper/sys/AttachMapper.xml @@ -33,6 +33,13 @@ select * from lf.sys_attach where guid = #{guid} limit 1 </select> + <select id="selectByGuids" resultType="com.lf.server.entity.sys.AttachEntity"> + select * from lf.sys_attach where guid in + <foreach item="guid" collection="guids" index="index" open="(" separator="," close=")"> + #{guid} + </foreach> + </select> + <select id="selectByTabAndGuid" resultType="com.lf.server.entity.sys.AttachEntity"> select * from lf.sys_attach where tab = #{tab} and tab_guid = #{tabGuid} and guid = #{guid} limit 1 </select> -- Gitblit v1.9.3