Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
1e60c1b9
Commit
1e60c1b9
authored
Jun 21, 2022
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时后台--
设置权限
parent
509d2c95
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
+4
-4
No files found.
src/main/java/cn/timer/api/controller/spmk/SpmkController.java
View file @
1e60c1b9
...
@@ -535,14 +535,14 @@ public class SpmkController {
...
@@ -535,14 +535,14 @@ public class SpmkController {
/*超管和管理员不受权限控制*/
/*超管和管理员不受权限控制*/
if
(
ent
.
getUserType
()
==
2
)
{
if
(
ent
.
getUserType
()
==
2
)
{
ZzglAuth
zzglAuth
=
ZzglAuth
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglAuth
>().
lambda
().
eq
(
ZzglAuth:
:
getBmgwId
,
userBean
.
getUserInfo
().
getBmgwId
())
ZzglAuth
zzglAuth
=
ZzglAuth
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglAuth
>().
lambda
().
eq
(
ZzglAuth:
:
getBmgwId
,
userBean
.
getUserInfo
().
getBmgwId
())
.
eq
(
ZzglAuth:
:
getMenuId
,
"/Approval
customshenpi
020101"
));
.
eq
(
ZzglAuth:
:
getMenuId
,
"/Approval
spbutonspbuton
020101"
));
/*如果没有该权限*/
/*如果没有该权限*/
if
(
zzglAuth
==
null
){
if
(
zzglAuth
==
null
){
SpmkCustomApproval
ca
=
SpmkCustomApproval
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
SpmkCustomApproval
>().
lambda
()
SpmkCustomApproval
ca
=
SpmkCustomApproval
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
SpmkCustomApproval
>().
lambda
()
.
eq
(
SpmkCustomApproval:
:
getName
,
spmkApproveSummaryDto
.
getApproveName
()).
eq
(
SpmkCustomApproval:
:
getOrgCode
,
userBean
.
getOrgCode
()));
.
eq
(
SpmkCustomApproval:
:
getName
,
spmkApproveSummaryDto
.
getApproveName
()).
eq
(
SpmkCustomApproval:
:
getOrgCode
,
userBean
.
getOrgCode
()));
Router
oldRouter
=
ObjectUtil
.
deserialize
(
ca
.
getRouter
());
Router
oldRouter
=
ObjectUtil
.
deserialize
(
ca
.
getRouter
());
if
(
isTrue
(
router
.
getChildren
(),
oldRouter
.
getChildren
())){
if
(
isTrue
(
router
.
getChildren
(),
oldRouter
.
getChildren
())){
return
ResultUtil
.
error
(
"您没有
设置
审批人的权限"
);
return
ResultUtil
.
error
(
"您没有
新增
审批人的权限"
);
}
}
}
}
}
}
...
@@ -768,9 +768,9 @@ public class SpmkController {
...
@@ -768,9 +768,9 @@ public class SpmkController {
/*超管和管理员不受权限控制*/
/*超管和管理员不受权限控制*/
if
(
ent
.
getUserType
()
==
2
)
{
if
(
ent
.
getUserType
()
==
2
)
{
ZzglAuth
zzglAuth
=
ZzglAuth
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglAuth
>().
lambda
().
eq
(
ZzglAuth:
:
getBmgwId
,
userBean
.
getUserInfo
().
getBmgwId
())
ZzglAuth
zzglAuth
=
ZzglAuth
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
ZzglAuth
>().
lambda
().
eq
(
ZzglAuth:
:
getBmgwId
,
userBean
.
getUserInfo
().
getBmgwId
())
.
eq
(
ZzglAuth:
:
getMenuId
,
"/Approval
customshenpi020101
"
));
.
eq
(
ZzglAuth:
:
getMenuId
,
"/Approval
spbutonspbuton020102
"
));
if
(
zzglAuth
==
null
)
{
if
(
zzglAuth
==
null
)
{
return
ResultUtil
.
error
(
"您没有转派
审批人的
权限"
);
return
ResultUtil
.
error
(
"您没有转派权限"
);
}
}
}
}
}
}
...
...
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