Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
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
lanmw
tagManager
Commits
16a7be87
Commit
16a7be87
authored
Jan 11, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取用户关联机构方法
parent
4c70c783
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
TagCtrl.java
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
+3
-1
No files found.
src/main/java/com/keymobile/tagmanager/api/TagCtrl.java
View file @
16a7be87
...
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestBody;
...
@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.keymobile.auth.common.security.GrantedAuthHelper
;
import
com.keymobile.tagmanager.exception.TagNotExistException
;
import
com.keymobile.tagmanager.exception.TagNotExistException
;
import
com.keymobile.tagmanager.model.Page
;
import
com.keymobile.tagmanager.model.Page
;
import
com.keymobile.tagmanager.model.SysTag
;
import
com.keymobile.tagmanager.model.SysTag
;
...
@@ -39,7 +40,7 @@ public class TagCtrl {
...
@@ -39,7 +40,7 @@ public class TagCtrl {
String
userName
=
UserInfoUtils
.
getUserName
();
String
userName
=
UserInfoUtils
.
getUserName
();
String
userId
=
UserInfoUtils
.
getUserId
();
String
userId
=
UserInfoUtils
.
getUserId
();
//获取当前登录用户所属机构
//获取当前登录用户所属机构
String
org
=
UserInfoUtils
.
getDataRoleOrg
(
);
String
org
=
/**UserInfoUtils.getDataRoleOrg()*/
String
.
valueOf
(
GrantedAuthHelper
.
getUserOrg
()
);
tag
.
setCreator
(
userName
);
tag
.
setCreator
(
userName
);
tag
.
setTagUser
(
userId
);
tag
.
setTagUser
(
userId
);
tag
.
setDept
(
org
);
tag
.
setDept
(
org
);
...
@@ -73,6 +74,7 @@ public class TagCtrl {
...
@@ -73,6 +74,7 @@ public class TagCtrl {
@RequestParam
(
required
=
false
)
String
deptIdPath
)
throws
TagNotExistException
{
@RequestParam
(
required
=
false
)
String
deptIdPath
)
throws
TagNotExistException
{
//获取当前登录用户机构
//获取当前登录用户机构
deptIdPath
=
UserInfoUtils
.
getDataRoleOrg
();
deptIdPath
=
UserInfoUtils
.
getDataRoleOrg
();
//考虑一个用户对应多个机构的情况
//考虑一个用户对应多个机构的情况
List
<
String
>
orgIds
=
new
ArrayList
<>();
List
<
String
>
orgIds
=
new
ArrayList
<>();
orgIds
.
add
(
deptIdPath
);
orgIds
.
add
(
deptIdPath
);
...
...
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