|
|
@ -69,7 +69,7 @@ public class SysDeptServiceImpl implements ISysDeptService{
|
|
|
|
@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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -92,7 +92,7 @@ public class SysDeptServiceImpl implements ISysDeptService{
|
|
|
|
* @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();
|
|
|
|
}
|
|
|
|
}
|
|
|
|