From a485f4494787001a2695863e239910c019a52246 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 05 十二月 2024 20:47:40 +0800
Subject: [PATCH] 表单\表格定义保存对象转换逻辑修改。UI数据查询接口修改

---
 Source/Service/ServiceBase/src/com/vci/server/cache/OrgCacheProvider.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/Source/Service/ServiceBase/src/com/vci/server/cache/OrgCacheProvider.java b/Source/Service/ServiceBase/src/com/vci/server/cache/OrgCacheProvider.java
index afc9eb4..9ef3aae 100644
--- a/Source/Service/ServiceBase/src/com/vci/server/cache/OrgCacheProvider.java
+++ b/Source/Service/ServiceBase/src/com/vci/server/cache/OrgCacheProvider.java
@@ -22,6 +22,18 @@
 		return JSONObject.parseObject(json, UserInfo.class);
 	}
 	
+	public static UserInfo getUserByID(String userId) {
+		String userName = RedisUtil.getInstance().hget(CacheNames.USERS, userId);
+		if (StringUtils.isBlank(userName))
+			return null;
+		
+		String json = RedisUtil.getInstance().hget(CacheNames.USERS, userName.toLowerCase());
+		if (StringUtils.isBlank(json))
+			return null;
+		
+		return JSONObject.parseObject(json, UserInfo.class);
+	}
+	
 	public static UserInfo[] getUsers(String[] names) {
 		List<UserInfo> lstObj = new ArrayList<UserInfo>();
 		

--
Gitblit v1.9.3