Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
c3a442fd
Commit
c3a442fd
authored
May 07, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取用户信息接口
parent
a2ab3845
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
UserSessionUtils.java
...ava/com/baosight/hggp/core/security/UserSessionUtils.java
+42
-0
No files found.
src/main/java/com/baosight/hggp/core/security/UserSessionUtils.java
View file @
c3a442fd
...
@@ -12,7 +12,9 @@ import org.apache.commons.collections.CollectionUtils;
...
@@ -12,7 +12,9 @@ import org.apache.commons.collections.CollectionUtils;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.collections.MapUtils
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.concurrent.ConcurrentMap
;
import
java.util.concurrent.ConcurrentMap
;
...
@@ -97,4 +99,44 @@ public class UserSessionUtils extends UserSession {
...
@@ -97,4 +99,44 @@ public class UserSessionUtils extends UserSession {
return
factoryCodes
;
return
factoryCodes
;
}
}
/**
* TODO *
* *获取登录用户所有角色的公司列表
* @return
*/
public
static
List
<
Map
<
String
,
String
>>
getRoleCompany
(){
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>(){{
put
(
"companyCode"
,
"001"
);
put
(
"companyName"
,
"公司A"
);
}};
return
new
ArrayList
<
Map
<
String
,
String
>>(){{
add
(
map
);}};
}
/**
* TODO *
* *获取指定公司的部门列表
* @return
*/
public
static
List
<
Map
<
String
,
String
>>
getDeptByCompany
(
String
companyCode
){
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>(){{
put
(
"deptCode"
,
"001"
);
put
(
"deptName"
,
"公司A"
);
}};
return
new
ArrayList
<
Map
<
String
,
String
>>(){{
add
(
map
);}};
}
/**
* TODO *
* *获取指定公司的人员列表
* @return
*/
public
static
List
<
Map
<
String
,
String
>>
getUserByCompany
(
String
companyCode
){
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>(){{
put
(
"userCode"
,
""
);
//工号
put
(
"userName"
,
""
);
//用户名称
put
(
"deptCode"
,
""
);
//所属部门编码
put
(
"deptName"
,
""
);
//所属部门名称
}};
return
new
ArrayList
<
Map
<
String
,
String
>>(){{
add
(
map
);}};
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment