src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -79,4 +79,15 @@ group by name order by key </select> <select id="selectAnnexByTab" resultType="com.lf.server.entity.sys.AttachEntity"> select a.* from lf.sys_attach a <where> tab = #{tab} <if test="gids != null"> and tab_guid in (select eventid from ${tab} where gid in (${gids})) </if> </where> order by a.id </select> </mapper>