| | |
| | | package com.zy.common.utils; |
| | | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.Node; |
| | | import com.zy.asrs.entity.Tag; |
| | | import com.zy.asrs.service.NodeService; |
| | | import com.zy.asrs.service.TagService; |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | public void executePath(Node node) { |
| | | NodeService bean = SpringUtils.getBean(NodeService.class); |
| | | Node parent = bean.selectById(node.getParentId()); |
| | | if (null != parent) { |
| | | path.insert(0, parent.getId()).insert(0,","); |
| | | pathName.insert(0, parent.getName()).insert(0,","); |
| | | if (parent.getParentId() != null) { |
| | | executePath(parent); |
| | | } else { |
| | | path.deleteCharAt(0); |
| | | pathName.deleteCharAt(0); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |