|  |  |  | 
|---|
|  |  |  | import com.matrix.core.constance.SystemErrorCode; | 
|---|
|  |  |  | import com.matrix.core.exception.GlobleException; | 
|---|
|  |  |  | import com.matrix.core.pojo.PaginationVO; | 
|---|
|  |  |  | import com.matrix.core.tools.LogUtil; | 
|---|
|  |  |  | import com.matrix.core.tools.ModelUtils; | 
|---|
|  |  |  | import com.matrix.core.tools.WebUtil; | 
|---|
|  |  |  | import com.matrix.system.common.authority.DefaultAuthorityManager; | 
|---|
|  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | // 非一级节点找到父节点后存入 | 
|---|
|  |  |  | SysFunction parentFn = allFnMap.get(String.valueOf(function.getFnParentId())); | 
|---|
|  |  |  | List<SysFunction> childs = parentFn.getChilds(); | 
|---|
|  |  |  | if (childs == null) { | 
|---|
|  |  |  | parentFn.setChilds(new ArrayList<SysFunction>()); | 
|---|
|  |  |  | if(parentFn!=null){ | 
|---|
|  |  |  | List<SysFunction> childs = parentFn.getChilds(); | 
|---|
|  |  |  | if (childs == null) { | 
|---|
|  |  |  | parentFn.setChilds(new ArrayList<SysFunction>()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | parentFn.getChilds().add(function); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | parentFn.getChilds().add(function); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|