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