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
cd1b0e66
Commit
cd1b0e66
authored
Jun 29, 2022
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子报聘回退优化3
parent
d1ef92cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
35 deletions
+37
-35
yd-api/src/main/java/com/yd/dal/service/practitioner/impl/PractitionerHiringDALServiceImpl.java
+37
-35
No files found.
yd-api/src/main/java/com/yd/dal/service/practitioner/impl/PractitionerHiringDALServiceImpl.java
View file @
cd1b0e66
...
...
@@ -113,8 +113,13 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
item
.
setLevelName
(
levelName
);
}
// 如果已审核结束,则不需要手动创建未审批的流程
if
(
"0"
.
equals
(
approveStatus
))
{
return
records
;
}
// 声明最终返回的List
List
<
HiringApproveRecords
>
resultList
=
new
ArrayList
<>();
List
<
HiringApproveRecords
>
resultList
=
new
ArrayList
<>(
records
);
// 所有的审批流程
List
<
MdPractitionerHiringApproveSteps
>
stepsList
=
systemConfigService
.
findHiringApproveStepsAll
();
// 当前经纪人的报聘职级
...
...
@@ -127,42 +132,39 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
subsystemOwnerName
=
(
approvedBy
!=
null
)
?
approvedBy
.
getName
()
:
""
;
}
// 如果已审核结束,则不需要手动创建未审批的流程
if
(
"0"
.
equals
(
approveStatus
))
{
for
(
MdPractitionerHiringApproveSteps
step
:
stepsList
)
{
// S2前2步不用审批
if
((
mdDropOptionName
.
indexOf
(
"S2"
)
>=
0
||
mdDropOptionName
.
indexOf
(
"S3"
)
>=
0
)
&&
(
step
.
getStepSeq
()
==
1
||
step
.
getStepSeq
()
==
2
)
)
{
continue
;
}
// 没有辅导人,前2步不用审批
if
((
hiringMemberShip
.
getMentorPractitionerId
()
==
null
||
hiringMemberShip
.
getMentor
()
==
null
)
&&
(
step
.
getStepSeq
()
==
1
||
step
.
getStepSeq
()
==
2
)
)
{
continue
;
}
for
(
MdPractitionerHiringApproveSteps
step
:
stepsList
)
{
// S2前2步不用审批
if
((
mdDropOptionName
.
indexOf
(
"S2"
)
>=
0
||
mdDropOptionName
.
indexOf
(
"S3"
)
>=
0
)
&&
(
step
.
getStepSeq
()
==
1
||
step
.
getStepSeq
()
==
2
)
)
{
continue
;
}
// 没有辅导人,前2步不用审批
if
((
hiringMemberShip
.
getMentorPractitionerId
()
==
null
||
hiringMemberShip
.
getMentor
()
==
null
)
&&
(
step
.
getStepSeq
()
==
1
||
step
.
getStepSeq
()
==
2
)
)
{
continue
;
}
if
(
step
.
getStepSeq
()
>=
Integer
.
valueOf
(
approveStatus
))
{
HiringApproveRecords
obj
=
new
HiringApproveRecords
();
obj
.
setApproveStepId
(
step
.
getId
());
obj
.
setApproveStepName
(
step
.
getStepName
());
obj
.
setApprovingStatusId
(
Long
.
valueOf
(
"2"
));
obj
.
setApprovingStatus
(
"未审批"
);
// 获取每一步审批人姓名
if
(
"mentor"
.
equals
(
step
.
getApproveRole
()))
{
obj
.
setApprovingPractitionerName
(
hiringMemberShip
.
getMentor
());
}
else
if
(
"subsystemOwner"
.
equals
(
step
.
getApproveRole
()))
{
obj
.
setApprovingPractitionerName
(
subsystemOwnerName
);
}
else
{
String
names
=
aclUserDalService
.
selectNamesByMobileNos
(
step
.
getAppointedApprovePractitioners
());
obj
.
setApprovingPractitionerName
(
names
);
}
resultList
.
add
(
obj
);
if
(
step
.
getStepSeq
()
>=
Integer
.
valueOf
(
approveStatus
))
{
HiringApproveRecords
obj
=
new
HiringApproveRecords
();
obj
.
setApproveStepId
(
step
.
getId
());
obj
.
setApproveStepName
(
step
.
getStepName
());
obj
.
setApprovingStatusId
(
Long
.
valueOf
(
"2"
));
obj
.
setApprovingStatus
(
"未审批"
);
// 获取每一步审批人姓名
if
(
"mentor"
.
equals
(
step
.
getApproveRole
()))
{
obj
.
setApprovingPractitionerName
(
hiringMemberShip
.
getMentor
());
}
else
if
(
"subsystemOwner"
.
equals
(
step
.
getApproveRole
()))
{
obj
.
setApprovingPractitionerName
(
subsystemOwnerName
);
}
else
{
String
names
=
aclUserDalService
.
selectNamesByMobileNos
(
step
.
getAppointedApprovePractitioners
());
obj
.
setApprovingPractitionerName
(
names
);
}
resultList
.
add
(
obj
);
}
}
return
resultList
;
...
...
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