管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-06 64d3e9657fb45b6415b19e23f483d46a82efe939
src/main/resources/mapper/sys/AttachMapper.xml
@@ -44,6 +44,19 @@
        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>