Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
5c7c6b7e
Commit
5c7c6b7e
authored
Feb 05, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批时判断角色是否有权限问题2
parent
b6548690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+5
-5
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
5c7c6b7e
...
...
@@ -171,7 +171,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
List
<
AclPractitionerHiringApproveRecords
>
recordsList
=
aclPractitionerHiringApproveRecordsDalService
.
queryListByBasicInfoId
(
hiringBasicInfoId
);
for
(
AclPractitionerHiringApproveRecords
record
:
recordsList
)
{
if
(
record
.
getStepSeq
().
equals
(
String
.
valueOf
(
hiringApproveStepsSeq
)))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
tru
e
,
"当前流程已审批,请勿重复提交"
));
responseVO
.
setCommonResult
(
new
CommonResult
(
fals
e
,
"当前流程已审批,请勿重复提交"
));
return
responseVO
;
}
}
...
...
@@ -205,7 +205,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
//判断当前操作人是否具有当前流程的审批权限
Integer
currentStepSeq
=
requestVO
.
getHiringApproveStepsSeq
();
if
(
currentStepSeq
==
null
)
{
responseVO
.
setCommonResult
(
new
CommonResult
(
tru
e
,
"审批已结束"
));
responseVO
.
setCommonResult
(
new
CommonResult
(
fals
e
,
"审批已结束"
));
return
;
}
BeanPropertyValueEqualsPredicate
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"stepSeq"
,
currentStepSeq
);
...
...
@@ -216,7 +216,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
//团队长之后的环节
String
[]
appointedMobileNos
=
step
.
getAppointedApprovePractitioners
().
split
(
","
);
if
(!
Arrays
.
asList
(
appointedMobileNos
).
contains
(
mobileNo
))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
tru
e
,
"无此流程的审批权限"
));
responseVO
.
setCommonResult
(
new
CommonResult
(
fals
e
,
"无此流程的审批权限"
));
return
;
}
}
else
{
...
...
@@ -225,12 +225,12 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
AclPractitionerHiringMembership
membership
=
membershipMapper
.
selectByHiringBasicInfoId
(
hiringBasicInfoId
);
if
(
"subsystemOwner"
.
equals
(
approveRole
))
{
if
(!
practitionerId
.
equals
(
membership
.
getSubsystemOwnerId
()))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
tru
e
,
"无此流程的审批权限"
));
responseVO
.
setCommonResult
(
new
CommonResult
(
fals
e
,
"无此流程的审批权限"
));
return
;
}
}
else
{
if
(!
practitionerId
.
equals
(
membership
.
getMentorPractitionerId
()))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
tru
e
,
"无此流程的审批权限"
));
responseVO
.
setCommonResult
(
new
CommonResult
(
fals
e
,
"无此流程的审批权限"
));
return
;
}
}
...
...
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