Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
9ad6f86e
Commit
9ad6f86e
authored
Mar 29, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限修改 开发人员增加区域公司隔离
parent
8c9dc748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UserEmpowerInterceptor.java
...s/boot/module/hygf/api/config/UserEmpowerInterceptor.java
+2
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/config/UserEmpowerInterceptor.java
View file @
9ad6f86e
...
...
@@ -169,7 +169,7 @@ public class UserEmpowerInterceptor implements Interceptor {
Boolean
specific
=
userEmpower
.
specific
();
//获取参数值,
StdUserEmpower
dataAuthRule
=(
StdUserEmpower
)
redisUtils
.
get
(
"Emp_"
+
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
()));
String
[]
data
=
new
String
[]{
String
.
join
(
","
,
dataAuthRule
.
getAmosOrgCode
()),
dataAuthRule
.
getAdminRegionalCompaniesCode
(),
dataAuthRule
.
getUserId
(),
dataAuthRule
.
getRegionalCompaniesCode
()};
String
[]
data
=
new
String
[]{
String
.
join
(
","
,
dataAuthRule
.
getAmosOrgCode
()),
dataAuthRule
.
getAdminRegionalCompaniesCode
()
==
null
?
dataAuthRule
.
getRegionalCompaniesCode
():
dataAuthRule
.
getAdminRegionalCompaniesCode
()
,
dataAuthRule
.
getUserId
(),
dataAuthRule
.
getRegionalCompaniesCode
()};
List
<
String
>
list
=
new
ArrayList
<>(
Arrays
.
asList
(
data
));
list
.
removeAll
(
Collections
.
singleton
(
null
));
...
...
@@ -179,7 +179,7 @@ public class UserEmpowerInterceptor implements Interceptor {
if
(!
ValidationUtil
.
isEmpty
(
dataAuthRule
.
getAdminRegionalCompaniesCode
())
&&
fileds
.
size
()
>
1
)
{
sq
=
selectSqlJXS
(
new
String
[]{
fileds
.
get
(
0
),
fileds
.
get
(
1
)},
fileCondition
,
list
);
}
else
if
(!
ValidationUtil
.
isEmpty
(
dataAuthRule
.
getUserId
()))
{
sq
=
selectSqlJXS
(
new
String
[]{
fileds
.
get
(
0
),
fileds
.
size
()<
3
?
fileds
.
get
(
0
):
fileds
.
get
(
2
)},
new
String
[]{
fileCondition
[
0
],
fileCondition
[
2
]}
,
list
);
sq
=
selectSqlJXS
(
new
String
[]{
fileds
.
get
(
0
),
fileds
.
get
(
1
),
fileds
.
size
()<
3
?
fileds
.
get
(
0
):
fileds
.
get
(
2
)},
new
String
[]{
fileCondition
[
0
],
fileCondition
[
1
],
fileCondition
[
2
]}
,
list
);
}
else
{
sq
=
selectSqlJXS
(
new
String
[]{
fileds
.
get
(
0
)},
fileCondition
,
specific
?
list:
Arrays
.
asList
(
list
.
get
(
1
)));
}
...
...
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