修复部门type参数不起效

This commit is contained in:
wulin 2020-10-20 16:00:55 +08:00
parent d881e9336b
commit 6764e848c2

View File

@ -44,7 +44,7 @@ public class DepartmentsController {
@ApiOperation("获取全部有效部门树列表")
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = DepartmentsDto.class)})
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;
}