新增接口 机构用户数据封装
This commit is contained in:
parent
eaf839fd31
commit
cd150f58eb
@ -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<String> listUsers = roleUserService.listUserId(roleDTO.getRoleId());
|
||||
//
|
||||
List<String> 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user