zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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="org.jeecg.modules.doc.mapper.DocFilePathMapper">
 
    <select id="selectUserFileByLikeRightFilePath" resultType="org.jeecg.modules.doc.entity.DocFilePath">
        select * from doc_file_path
        where (file_path = #{filePath} or file_path like concat(#{filePath},'/%')) and delete_flag = 0
    </select>
 
    <select id="querySubCount" resultType="java.util.Map">
        select parent_id parentId ,count(1) as num from doc_file_path where is_dir = 1 and  parent_id in
        <foreach collection="list" item="item" open="("  separator="," close=")">
            #{item}
        </foreach>
        group by parent_id
    </select>
</mapper>