管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-02-04 da4495adb23e6bd4e0cbf70f98f35ba04231a78b
src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -86,6 +86,25 @@
        order by key
    </select>
    <select id="selectDirsByTypes" resultType="com.lf.server.entity.ctrl.KeyValueEntity">
        select (select string_agg(code, ',') from lf.sys_dir where name = a.name) "key", name "value"
        from lf.sys_dir a
        <where>
            1 = 1
            <if test="types != null">
                and name in
                <foreach item="type" collection="types" open="(" separator="," close=")">
                    #{type}
                </foreach>
            </if>
            <if test="dirs != null">
                and ${dirs}
            </if>
        </where>
        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>