> For AI agents: the complete documentation index is available at /docs/2025/llms.txt, the full documentation bundle is available at /docs/2025/llms-full.txt.

# 树形结构

树形结构
权限系统，文件目录，商品类目等都会采用树形结构存储。

- [超赞，老外的一种避免递归查询所有子部门的树数据表设计与实现！](https://mp.weixin.qq.com/s/tXmqeD9UlypGO_mMDIrMhw)
- [一次性搞定权限树遍历（通用解决方案）](https://mp.weixin.qq.com/s/2Tl_8bAcYMck3xGtebJnWA)
- [树形结构与 SQL 的碰撞——三种树形结构存储方案的对比](https://www.jianshu.com/p/f70d9117d3b6)
- [解密阿里大神写的天书般的Tree工具类，轻松搞定树结构！](https://mp.weixin.qq.com/s?__biz=MzU1MzczMjg3MQ==\&mid=2247484357\&idx=1\&sn=4e0ae99c1cdabdfe3ad6b85f46cf8e72\&chksm=fbef1dadcc9894bb0011f3b4922bff7b2c1183f634be66edf0db29b18de8848f0342df51b62a\&mpshare=1\&scene=1\&srcid=0729WlveuxbiUmeWEvu4p1OH\&sharer_shareinfo=dcd294ea3e2d36a680bf40e6711d0d54\&sharer_shareinfo_first=996f72179122b7285f891b48cfee2ef9\&version=4.1.10.99312\&platform=mac\&nwr_flag=1#wechat_redirect)
- [拒绝重复代码，封装一个多级菜单、多级评论、多级部门的统一工具类](https://mp.weixin.qq.com/s?__biz=MzUzMTA2NTU2Ng==\&mid=2247597513\&idx=2\&sn=b8bc56286e41451501e836446e4b483a\&chksm=fa4b0278cd3c8b6e595770dae78c3123036ad15bd2bf1c9a12d08ac1e180f4977203bd6095e6\&mpshare=1\&scene=1\&srcid=0627POw1rR8vIafnXfRxZ2rP\&sharer_shareinfo=323736b0fa28612a141170698f20746b\&sharer_shareinfo_first=b8eed6414db872d38916fc4be461366d\&version=4.1.10.99312\&platform=mac\&nwr_flag=1#wechat_redirect)
