| | |
| | | public List<SysUserDept> selectLeafSysDeptList(SysUserDept sysUserDept){ |
| | | List<SysDept> list = sysDeptMapper.selectSysDeptListBySysUserDept(sysUserDept); |
| | | if(org.apache.commons.collections4.CollectionUtils.isNotEmpty(list)){ |
| | | List<SysDept> tree = TreeUtils.buildDeptTree(list); |
| | | list = TreeUtils.getLeafDepts(tree); |
| | | list = TreeUtils.getLeafDepts(list); |
| | | } |
| | | List<SysUserDept> list1 = DtoConversionUtils.sourceToTarget(list, SysUserDept.class); |
| | | return list1; |
| | |
| | | SysUserDept sysUserDept = DtoConversionUtils.sourceToTarget(sysDept, SysUserDept.class); |
| | | List<SysDept> list = sysDeptMapper.selectSysDeptListBySysUserDept(sysUserDept); |
| | | if(org.apache.commons.collections4.CollectionUtils.isNotEmpty(list)){ |
| | | List<SysDept> tree = TreeUtils.buildDeptTree(list); |
| | | list = TreeUtils.getLeafDepts(tree); |
| | | list = TreeUtils.getLeafDepts(list); |
| | | } |
| | | return list; |
| | | } |