From 3418f61a47946529b5f413e0d0548302c19a968b Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 02 十二月 2024 14:34:49 +0800 Subject: [PATCH] 1、部分查询接口增加排序。2、UI部分的页面定义管理界面增加BS自定义查询方式和CS自定义查询方式两个字段的增删改逻辑。 --- 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