@ -143,4 +143,14 @@ public class SysDeptController extends BaseController {
return R.ok(deptService.selectDeptByIds(deptIds == null ? null : List.of(deptIds)));
}
/**
* 查询全部部门列表
* @param dept
* @return
*/
@GetMapping("/allListDept")
public R<List<SysDeptVo>> allListDept(SysDeptBo dept) {
return R.ok(deptService.selectAllListDept(dept));
@ -144,4 +144,6 @@ public interface ISysDeptService {
int deleteDeptById(Long deptId);
List<SysDeptVo> selectAllListDept(SysDeptBo dept);
@ -381,4 +381,10 @@ public class SysDeptServiceImpl implements ISysDeptService {
return baseMapper.deleteById(deptId);
@Override
public List<SysDeptVo> selectAllListDept(SysDeptBo dept) {
LambdaQueryWrapper<SysDept> lqw = buildQueryWrapper(dept);
return baseMapper.selectVoList(lqw);