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
55e84a69
Commit
55e84a69
authored
Feb 05, 2021
by
jianan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_20210203_hiringUpdate' into dev
parents
cab0b00e
3f9bdca3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+36
-2
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
55e84a69
...
...
@@ -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
;
}
}
...
...
@@ -202,6 +202,40 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
Long
hiringBasicInfoId
=
requestVO
.
getHiringBasicInfoId
();
//查询审批流程
List
<
MdPractitionerHiringApproveSteps
>
hiringApproveStepsList
=
systemConfigService
.
findHiringApproveStepsAll
();
//判断当前操作人是否具有当前流程的审批权限
Integer
currentStepSeq
=
requestVO
.
getHiringApproveStepsSeq
();
if
(
currentStepSeq
==
null
)
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"审批已结束"
));
return
;
}
BeanPropertyValueEqualsPredicate
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"stepSeq"
,
currentStepSeq
);
List
<
MdPractitionerHiringApproveSteps
>
steps
=
(
List
<
MdPractitionerHiringApproveSteps
>)
CollectionUtils
.
select
(
hiringApproveStepsList
,
predicate
);
MdPractitionerHiringApproveSteps
step
=
steps
.
get
(
0
);
if
(
StringUtils
.
isNotEmpty
(
step
.
getAppointedApprovePractitioners
()))
{
//团队长之后的环节
String
[]
appointedMobileNos
=
step
.
getAppointedApprovePractitioners
().
split
(
","
);
if
(!
Arrays
.
asList
(
appointedMobileNos
).
contains
(
mobileNo
))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"无此流程的审批权限"
));
return
;
}
}
else
{
//辅导人或团队长
String
approveRole
=
step
.
getApproveRole
();
AclPractitionerHiringMembership
membership
=
membershipMapper
.
selectByHiringBasicInfoId
(
hiringBasicInfoId
);
if
(
"subsystemOwner"
.
equals
(
approveRole
))
{
if
(!
practitionerId
.
equals
(
membership
.
getSubsystemOwnerId
()))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"无此流程的审批权限"
));
return
;
}
}
else
{
if
(!
practitionerId
.
equals
(
membership
.
getMentorPractitionerId
()))
{
responseVO
.
setCommonResult
(
new
CommonResult
(
false
,
"无此流程的审批权限"
));
return
;
}
}
}
//保存审批结果
saveRecords
(
practitionerId
,
mobileNo
,
hiringApproveStepsList
,
requestVO
,
responseVO
);
...
...
@@ -524,7 +558,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
StringBuilder
messageText
=
new
StringBuilder
();
messageText
.
append
(
"银盾人事你好,"
);
if
(
"30"
.
equals
(
memberShip
.
getMdDropOptionId
()))
{
if
(
Long
.
valueOf
(
"30"
)
.
equals
(
memberShip
.
getMdDropOptionId
()))
{
// XX 分公司的 XXX
messageText
.
append
(
memberShip
.
getBranch
()).
append
(
"的"
).
append
(
basicInfo
.
getName
());
}
else
{
...
...
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