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>