From 6e5c3105e4921bf5e75c71351c27dfd345d45073 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期四, 08 六月 2023 16:02:50 +0800
Subject: [PATCH] 集成接口管理模块-系统管理删除接口添加

---
 Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/controller/UserController.java |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/controller/UserController.java b/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/controller/UserController.java
index 7d66724..b4686b9 100644
--- a/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/controller/UserController.java
+++ b/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/controller/UserController.java
@@ -93,7 +93,18 @@
 	@GetMapping("/info")
 	public R<UserVO> info(BladeUser user) {
 		User detail = userService.getById(user.getUserId());
-		return R.data(UserWrapper.build().entityVO(detail));
+		UserVO userVO = null;
+		if(detail != null){
+			userVO = UserWrapper.build().entityVO(detail);
+		}else {
+			userVO = new UserVO();
+			userVO.setId(user.getUserId());
+			userVO.setTenantId(user.getTenantId());
+			userVO.setAccount(user.getAccount());
+			userVO.setName(user.getUserName());
+			userVO.setRealName(user.getUserName());
+		}
+		return R.data(userVO);
 	}
 
 	/**

--
Gitblit v1.9.3