| | |
| | | import com.zy.crm.manager.entity.Tag; |
| | | import com.zy.crm.manager.service.NodeService; |
| | | import com.zy.crm.manager.service.TagService; |
| | | import com.zy.crm.system.entity.Dept; |
| | | import com.zy.crm.system.service.DeptService; |
| | | |
| | | /** |
| | | * Created by vincent on 2021/1/19 |
| | |
| | | } |
| | | } |
| | | |
| | | public void executePath(Dept dept) { |
| | | DeptService bean = SpringUtils.getBean(DeptService.class); |
| | | Dept parent = bean.selectById(dept.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); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public void executePath(Long parentId) { |
| | | TagService bean = SpringUtils.getBean(TagService.class); |
| | | Tag parent = bean.selectById(parentId); |