将数据库树形记录转为java 树形数据结构

/** * 转换为Tree结构 * @param treedata * @return */ public static Tree toTreeList(List<Tree> treedata){ Tree root = null; for(Tree node:treedata){ String parentid = node.getParentid(); i
相关文章
相关标签/搜索