yangys
2024-04-05 84dea9976c29ac938fa018b8566c71461b056418
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.qianwen.smartman.modules.dnc.mapper.FileMapper">
    <select id="getPathName" resultType="string">
        SELECT
        LISTAGG(to_char(a.name), '/') WITHIN GROUP(ORDER BY a.name ) AS allPathName
        FROM
        ( SELECT LISTAGG(to_char(display_name), '/') WITHIN GROUP(ORDER BY all_path) AS name FROM blade_dnc_craft_file WHERE id
        IN
        <foreach collection="fileIds" item="id" index="index" open="(" close=")" separator=",">
            #{id}
        </foreach>
        ) a
    </select>
 
</mapper>