src/main/resources/mapper/sys/AttachMapper.xml
@@ -33,6 +33,10 @@ select * from lf.sys_attach where guid = #{guid} limit 1 </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> <select id="selectByTab" resultType="com.lf.server.entity.sys.AttachEntity"> select * from lf.sys_attach where tab = #{tab} and tab_guid = #{guid} </select>