mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
获取不到用户引发的NPE异常
Signed-off-by: g_l <glwxx0719@163.com>
This commit is contained in:
parent
d46097a658
commit
4091253693
@ -119,6 +119,7 @@ public class UserController {
|
||||
@PreAuthorize("@ss.hasPermission('system:user:query')")
|
||||
public CommonResult<UserRespVO> getUser(@RequestParam("id") Long id) {
|
||||
AdminUserDO user = userService.getUser(id);
|
||||
if (ObjectUtil.isEmpty(user)) return CommonResult.success(null);
|
||||
// 拼接数据
|
||||
DeptDO dept = deptService.getDept(user.getDeptId());
|
||||
return success(UserConvert.INSTANCE.convert(user, dept));
|
||||
|
Loading…
Reference in New Issue
Block a user