1.0.16 查询全部部门列表

dev
yinq 2 months ago
parent fc70c81d06
commit b50e664c99

@ -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);
}
}

Loading…
Cancel
Save