新增根据部门获取部门下级用户接口
This commit is contained in:
@@ -391,5 +391,21 @@ public class UserController extends BaseController {
|
||||
List<User> users = userService.getMarketList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, users, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取同级部门用户,以及下级部门所有用户
|
||||
* @author cdf
|
||||
* @date 2023/7/31
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@PostMapping("/getUserListByDeptId")
|
||||
@ApiOperation("根据用户id集合查询用户信息")
|
||||
@ApiImplicitParam(name = "deptId", value = "用户部门id", required = true)
|
||||
public HttpResult<List<User>> getUserListByDeptId(@RequestParam("deptId") String deptId) {
|
||||
String methodDescribe = getMethodDescribe("getUserListByDeptId");
|
||||
List<User> users = userService.getUserListByDeptId(deptId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, users, methodDescribe);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user