From cd150f58eb4ae9672486669e8a835f2b93160071 Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Thu, 10 Jun 2021 16:38:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3=20?= =?UTF-8?q?=E6=9C=BA=E6=9E=84=E7=94=A8=E6=88=B7=E6=95=B0=E6=8D=AE=E5=B0=81?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../departmentBaseController.java | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java index cb945cd..9dc3d8a 100644 --- a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java +++ b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/departmentBaseController.java @@ -53,7 +53,8 @@ public class departmentBaseController extends DefaultBaseController { private IRoleUserService roleUserService; @Autowired private IUserService userService; - + @Autowired + private IPositionService positionService; /** @@ -116,9 +117,11 @@ public class departmentBaseController extends DefaultBaseController { return list; } List listUsers = roleUserService.listUserId(roleDTO.getRoleId()); - // List userIds = departmentUserService.listUserId(departmentId, listUsers); list = userService.listByUserIds(userIds); + for (UserDTO userDTO : list) { + + } return list; } @@ -134,6 +137,22 @@ public class departmentBaseController extends DefaultBaseController { return list; } + @ApiOperation(value = "用户详情", notes = "用户详情用户列表") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("get-by-user-id/{userId}") + public UserDTO getByUserId(@PathVariable("userId") String userId){ + UserDTO userDTO = userService.get(userId); + return userDTO; + } + + + + + + + + +