Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
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
林锐标
slm-bi
Commits
bee6d12e
Commit
bee6d12e
authored
May 29, 2021
by
linruibiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口编写
parent
bbff882f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
VariableServiceImpl.java
...a/com/syc/slm/slmbi/service/impl/VariableServiceImpl.java
+13
-13
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/VariableServiceImpl.java
View file @
bee6d12e
...
@@ -235,23 +235,23 @@ public class VariableServiceImpl implements VariableService {
...
@@ -235,23 +235,23 @@ public class VariableServiceImpl implements VariableService {
Map
<
String
,
String
>
detach
=
result
.
detach
();
Map
<
String
,
String
>
detach
=
result
.
detach
();
String
officeIds
=
detach
.
get
(
"deptIds"
);
String
officeIds
=
detach
.
get
(
"deptIds"
);
String
roleIds
=
detach
.
get
(
"roleIds"
);
String
roleIds
=
detach
.
get
(
"roleIds"
);
if
(
flag
)
{
if
(
CollectionUtils
.
isNotEmpty
(
departments
))
{
if
(
CollectionUtils
.
isNotEmpty
(
departments
))
{
if
(
departments
.
stream
().
map
(
CustomPermissionDTO:
:
getBizId
).
anyMatch
(
officeIds:
:
contains
))
{
if
(
departments
.
stream
().
map
(
CustomPermissionDTO:
:
getBizId
).
anyMatch
(
officeIds:
:
contains
))
{
flag
=
false
;
flag
=
false
;
}
}
}
}
}
if
(
flag
)
{
if
(
CollectionUtils
.
isNotEmpty
(
positions
))
{
if
(
positions
.
stream
().
map
(
CustomPermissionDTO:
:
getBizId
).
anyMatch
(
roleIds:
:
contai
ns
))
{
if
(
CollectionUtils
.
isNotEmpty
(
positio
ns
))
{
flag
=
false
;
if
(
positions
.
stream
().
map
(
CustomPermissionDTO:
:
getBizId
).
anyMatch
(
roleIds:
:
contains
))
{
}
flag
=
false
;
}
}
}
}
if
(
flag
)
{
throw
new
SysException
(
"没有访问权限"
);
}
}
if
(!
flag
)
{
throw
new
SysException
(
"您没有操作权限"
);
}
}
}
}
...
...
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