mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 11:40:05 +08:00
commit
c18509944f
@ -119,6 +119,7 @@ public class UserController {
|
|||||||
@PreAuthorize("@ss.hasPermission('system:user:query')")
|
@PreAuthorize("@ss.hasPermission('system:user:query')")
|
||||||
public CommonResult<UserRespVO> getUser(@RequestParam("id") Long id) {
|
public CommonResult<UserRespVO> getUser(@RequestParam("id") Long id) {
|
||||||
AdminUserDO user = userService.getUser(id);
|
AdminUserDO user = userService.getUser(id);
|
||||||
|
if (ObjectUtil.isEmpty(user)) return CommonResult.success(null);
|
||||||
// 拼接数据
|
// 拼接数据
|
||||||
DeptDO dept = deptService.getDept(user.getDeptId());
|
DeptDO dept = deptService.getDept(user.getDeptId());
|
||||||
return success(UserConvert.INSTANCE.convert(user, dept));
|
return success(UserConvert.INSTANCE.convert(user, dept));
|
||||||
|
Loading…
Reference in New Issue
Block a user