你只想查三级?大概就是下面这样吧 就是个思路 按一级查二到三级就是深入两次 按这么写的话你想查几级都可以public List findChildren(long parentId, int depth) {
List children = titleDAO.findByParentId(parentId);
if (depth > 1) {
for (Title title : children) {
children.addAll(findChildren(title.id), depth - 1)
}
}
return children;}f...