修复部门type参数不起效
This commit is contained in:
parent
d881e9336b
commit
6764e848c2
@ -44,7 +44,7 @@ public class DepartmentsController {
|
|||||||
@ApiOperation("获取全部有效部门树列表")
|
@ApiOperation("获取全部有效部门树列表")
|
||||||
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = DepartmentsDto.class)})
|
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = DepartmentsDto.class)})
|
||||||
public List<DepartmentsDto> deplist(@RequestParam @ApiParam(value = "请求类型0 请求部门不包含人员列表,1同时返回人员列表") int type) {
|
public List<DepartmentsDto> deplist(@RequestParam @ApiParam(value = "请求类型0 请求部门不包含人员列表,1同时返回人员列表") int type) {
|
||||||
List<DepartmentsDto> departmentList = departmentsService.getDepartmentTree(1);
|
List<DepartmentsDto> departmentList = departmentsService.getDepartmentTree(type);
|
||||||
|
|
||||||
return departmentList;
|
return departmentList;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user