|
@@ -158,7 +158,7 @@ public class SysUserController extends BaseLogController {
|
|
* @param type 0 管理员,1普通用户
|
|
* @param type 0 管理员,1普通用户
|
|
*/
|
|
*/
|
|
@GetMapping("/getCreateUserDept")
|
|
@GetMapping("/getCreateUserDept")
|
|
- public ResultData getCreateUserDept(@RequestParam(required = false) Integer type){
|
|
|
|
|
|
+ public ResultData getCreateUserDept(@RequestParam(required = false,defaultValue = "0") Integer type){
|
|
List<DeptVo> depts = deptService.getListByType(type,getToken());
|
|
List<DeptVo> depts = deptService.getListByType(type,getToken());
|
|
return ResultData.ok(depts);
|
|
return ResultData.ok(depts);
|
|
}
|
|
}
|