| | |
| | | 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> |