4f71b40b418843b4d81a29234d7db261ebd51f37
BS-New-6: dacli dict typeList --keyword=jxcj 永远返 0, AI 误以为没字典
根因: web DictionaryTypeController.list() 返树形结构 (list[] 含 children[]),
旧代码只过滤顶层 2 项 (业务字典/系统字典)
镜像: web 端 tree util (SumTree + TreeDotUtils) 走递归
修: --recursive 默认 ON 递归展平 children, --tree 显示原始树形
--no-recursive 保留旧行为 (2 项)
测试场 (jxcj) 验证:
--keyword=jxcjteamstatus → 1 个 (精确, 含 _path)
--keyword=jxcj → 52 个 (前缀)
--no-recursive → 2 个 (旧行为)
--tree → 显示原始树形 (├─ 缩进)
默认 (无 keyword) → 156 个 (从 2 → +154 子分类)
jxcj 2026-06-30 实战教训
Languages
TypeScript
99.4%
Shell
0.4%
Python
0.2%