| | |
| | | return deptMapper.selectDeptList(dept); |
| | | } |
| | | |
| | | @Override |
| | | public List<SysDept> selectDeptListNoAuth(SysDept dept) { |
| | | return deptMapper.selectDeptListNoAuth(dept); |
| | | } |
| | | |
| | | /** |
| | | * 查询部门树结构信息 |
| | | * |
| | |
| | | updateDeptChildren(dept.getDeptId(), newAncestors, oldAncestors); |
| | | } |
| | | } else { |
| | | dept.setDeptId(0L); |
| | | dept.setParentId(0L); |
| | | dept.setAncestors(""); |
| | | } |
| | | int result = deptMapper.updateDept(dept); |
| | |
| | | }).collect(Collectors.toList()); |
| | | return list; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<Long> getChildIds(Long deptId) { |
| | | return deptMapper.getChildIds(deptId); |
| | | } |
| | | } |