管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-02-05 bfc1c1abd1d1deab45740806ce984b6774a319bd
src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -87,22 +87,23 @@
    </select>
    <select id="selectDirsByTypes" resultType="com.lf.server.entity.ctrl.KeyValueEntity">
        select name "key", (select string_agg(code, ',') from lf.sys_dir where name = a.name) "value"
        from lf.sys_dir a
        <where>
            1 = 1
            <if test="types != null">
                and name in
        with rs as (
            select name, code
            from lf.sys_dir
            <where>
                name in
                <foreach item="type" collection="types" open="(" separator="," close=")">
                    #{type}
                </foreach>
            </if>
            <if test="dirs != null">
                and ${dirs}
            </if>
        </where>
                <if test="dirs != null">
                    and ${dirs}
                </if>
            </where>
        )
        select name "key", (select string_agg(code, ',') from rs where name = a.name) "value"
        from rs a
        group by name
        order by key
        order by value;
    </select>
    <select id="selectAnnexByTab" resultType="com.lf.server.entity.sys.AttachEntity">