Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
a3347f45
Commit
a3347f45
authored
Oct 17, 2019
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限设置
parent
741190b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
AuthServiceImpl.java
src/main/java/common/service/impl/AuthServiceImpl.java
+8
-5
No files found.
src/main/java/common/service/impl/AuthServiceImpl.java
View file @
a3347f45
...
@@ -34,30 +34,33 @@ public class AuthServiceImpl implements AuthService {
...
@@ -34,30 +34,33 @@ public class AuthServiceImpl implements AuthService {
List
<
String
>
authArrs
=
new
ArrayList
<>();
List
<
String
>
authArrs
=
new
ArrayList
<>();
Map
<
String
,
Object
>
collect
=
new
HashMap
<>();
if
(
RoleEnum
.
FINANCE
.
getKey
().
equals
(
loginAccount
.
getRole
())){
if
(
RoleEnum
.
FINANCE
.
getKey
().
equals
(
loginAccount
.
getRole
())){
//财务 按签约主体查看
//财务 按签约主体查看
authArrs
=
JSONArray
.
fromObject
(
auth
.
getAuthExtend
());
List
<
Integer
>
authInt
=
JSONArray
.
fromObject
(
auth
.
getAuthExtend
());
// authArrs = contractBodyRepository.findByIds(bodyids
);
collect
=
authInt
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
.
toString
(),
t
->
t
)
);
}
else
if
(
RoleEnum
.
SALSEMAN
.
getKey
().
equals
(
loginAccount
.
getRole
())){
}
else
if
(
RoleEnum
.
SALSEMAN
.
getKey
().
equals
(
loginAccount
.
getRole
())){
//销售 按签约合同人查看
//销售 按签约合同人查看
authArrs
=
JSONArray
.
fromObject
(
auth
.
getAuthExtend
());
authArrs
=
JSONArray
.
fromObject
(
auth
.
getAuthExtend
());
collect
=
authArrs
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
,
t
->
t
));
}
else
if
(
RoleEnum
.
PM
.
getKey
().
equals
(
loginAccount
.
getRole
())){
}
else
if
(
RoleEnum
.
PM
.
getKey
().
equals
(
loginAccount
.
getRole
())){
// 项目经理
// 项目经理
authArrs
=
JSONArray
.
fromObject
(
auth
.
getAuthExtend
());
authArrs
=
JSONArray
.
fromObject
(
auth
.
getAuthExtend
());
collect
=
authArrs
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
,
t
->
t
));
}
}
Map
<
String
,
Object
>
collect
=
new
HashMap
<>();
if
(
collect
.
size
()>
0
){
if
(
authArrs
.
size
()>
0
){
collect
=
authArrs
.
stream
().
collect
(
Collectors
.
toMap
(
t
->
t
,
t
->
t
));
collect
.
put
(
"needcheck"
,
"1"
);
collect
.
put
(
"needcheck"
,
"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