|
|
@@ -63,7 +63,7 @@ public class Tree<T> extends LinkedHashMap<String, Object> implements Node<T> {
|
|
|
* 比如有个人在研发1部,他上面有研发部,接着上面有技术中心<br>
|
|
|
* 返回结果就是:[研发一部, 研发中心, 技术中心]
|
|
|
*
|
|
|
- * @param id 节点ID
|
|
|
+ * @param id 节点ID
|
|
|
* @param includeCurrentNode 是否包含当前节点的名称
|
|
|
* @return 所有父节点名称列表
|
|
|
* @since 5.2.4
|
|
|
@@ -91,6 +91,7 @@ public class Tree<T> extends LinkedHashMap<String, Object> implements Node<T> {
|
|
|
* 设置父节点
|
|
|
*
|
|
|
* @param parent 父节点
|
|
|
+ * @return this
|
|
|
* @since 5.2.4
|
|
|
*/
|
|
|
public Tree<T> setParent(Tree<T> parent) {
|