| | |
| | | */ |
| | | @Override |
| | | public List<Tree<Long>> selectDeptTreeList(SysDeptBo bo) { |
| | | // 只查询未禁用部门 |
| | | bo.setStatus(UserConstants.DEPT_NORMAL); |
| | | LambdaQueryWrapper<SysDept> lqw = buildQueryWrapper(bo); |
| | | List<SysDept> depts = baseMapper.selectList(lqw); |
| | | List<SysDeptVo> depts = baseMapper.selectDeptList(lqw); |
| | | return buildDeptTreeSelect(depts); |
| | | } |
| | | |
| | |
| | | * @return 下拉树结构列表 |
| | | */ |
| | | @Override |
| | | public List<Tree<Long>> buildDeptTreeSelect(List<SysDept> depts) { |
| | | public List<Tree<Long>> buildDeptTreeSelect(List<SysDeptVo> depts) { |
| | | if (CollUtil.isEmpty(depts)) { |
| | | return CollUtil.newArrayList(); |
| | | } |