src/main/resources/mapper/data/DirMapper.xml
@@ -49,6 +49,15 @@ order by code; </select> <select id="selectByPid" resultType="com.lf.server.entity.data.DirEntity"> with recursive rs as( select a.* from lf.sys_dir a where id = #{pid} union select b.* from lf.sys_dir b, rs c where b.pid = c.id) select * from rs order by code; </select> <select id="selectDirsForPrj" resultType="com.lf.server.entity.data.DirEntity"> select a.* from lf.sys_dir a where code not like '00%' order by code; </select>