| | |
| | | |
| | | import com.core.common.SpringUtils; |
| | | import zy.cloud.wms.manager.entity.Node; |
| | | import zy.cloud.wms.manager.entity.Tag; |
| | | import zy.cloud.wms.manager.service.NodeService; |
| | | import zy.cloud.wms.manager.service.TagService; |
| | | |
| | | /** |
| | | * Created by vincent on 2021/1/19 |
| | |
| | | pathName.deleteCharAt(0); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public void executePath(Tag tag) { |
| | | TagService bean = SpringUtils.getBean(TagService.class); |
| | | Tag parent = bean.selectById(tag.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); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |