|
|
@ -70,7 +70,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<Tree<Long>> selectDeptTreeList(SysDeptBo bo) {
|
|
|
|
public List<Tree<Long>> selectDeptTreeList(SysDeptBo bo) {
|
|
|
|
LambdaQueryWrapper<SysDept> lqw = buildQueryWrapper(bo);
|
|
|
|
LambdaQueryWrapper<SysDept> lqw = buildQueryWrapper(bo);
|
|
|
|
List<SysDept> depts = baseMapper.selectList(lqw);
|
|
|
|
List<SysDeptVo> depts = baseMapper.selectDeptList(lqw);
|
|
|
|
return buildDeptTreeSelect(depts);
|
|
|
|
return buildDeptTreeSelect(depts);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -93,7 +93,7 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
|
|
|
|
* @return 下拉树结构列表
|
|
|
|
* @return 下拉树结构列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<Tree<Long>> buildDeptTreeSelect(List<SysDept> depts) {
|
|
|
|
public List<Tree<Long>> buildDeptTreeSelect(List<SysDeptVo> depts) {
|
|
|
|
if (CollUtil.isEmpty(depts)) {
|
|
|
|
if (CollUtil.isEmpty(depts)) {
|
|
|
|
return CollUtil.newArrayList();
|
|
|
|
return CollUtil.newArrayList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|