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
478d8503
Commit
478d8503
authored
Jan 20, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批问题4
parent
e85f3958
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+10
-8
yd-api/src/main/java/com/yd/dal/service/practitioner/impl/PractitionerHiringDALServiceImpl.java
+4
-0
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
478d8503
...
@@ -193,7 +193,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -193,7 +193,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
}
}
//保存完毕,判断是否为最后一步
//保存完毕,判断是否为最后一步
AclPractitionerHiringBasicInfo
basicInfo2
=
basicInfoMapper
.
selectByPrimaryKey
(
hiringBasicInfoId
);
AclPractitionerHiringBasicInfo
basicInfo2
=
basicInfoMapper
.
selectByPrimaryKey
(
hiringBasicInfoId
);
if
(
"5"
.
equals
(
basicInfo2
.
getApproveStatus
(
)))
{
if
(
basicInfo2
.
getApproveStatus
().
equals
(
String
.
valueOf
(
hiringApproveStepsList
.
size
()
)))
{
Long
approvingStatus
=
requestVO
.
getApprovingStatus
();
Long
approvingStatus
=
requestVO
.
getApprovingStatus
();
String
basicInfoStatus
=
null
;
String
basicInfoStatus
=
null
;
if
(
approvingStatus
==
1
)
{
if
(
approvingStatus
==
1
)
{
...
@@ -320,13 +320,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -320,13 +320,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
}
}
private
boolean
isHasNextStep
(
Long
loginPractitionerId
,
String
mobileNo
,
Long
basicInfoId
,
MdPractitionerHiringApproveSteps
nextStep
)
{
private
boolean
isHasNextStep
(
Long
loginPractitionerId
,
String
mobileNo
,
Long
basicInfoId
,
MdPractitionerHiringApproveSteps
nextStep
)
{
// 先判断是否是AGMS中审批的人员
// 判断是辅导人和团队长
String
appointedApprovePractitioners
=
nextStep
.
getAppointedApprovePractitioners
();
List
<
String
>
hiringApproveMobileNos
=
new
ArrayList
<>(
Arrays
.
asList
(
appointedApprovePractitioners
.
split
(
","
)));
if
(
hiringApproveMobileNos
.
contains
(
mobileNo
))
{
return
true
;
}
// 不是AGMS审批人;只有既是辅导人又是团队长才有下一步
if
(!
CommonUtil
.
isNullOrZero
(
loginPractitionerId
))
{
if
(!
CommonUtil
.
isNullOrZero
(
loginPractitionerId
))
{
String
approveRole
=
nextStep
.
getApproveRole
();
String
approveRole
=
nextStep
.
getApproveRole
();
if
(
StringUtils
.
isNotEmpty
(
approveRole
))
{
if
(
StringUtils
.
isNotEmpty
(
approveRole
))
{
...
@@ -340,6 +334,14 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -340,6 +334,14 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
}
}
}
}
}
}
// 判断是否是AGMS中审批的人员
String
appointedApprovePractitioners
=
nextStep
.
getAppointedApprovePractitioners
();
if
(
StringUtils
.
isNotEmpty
(
appointedApprovePractitioners
))
{
List
<
String
>
hiringApproveMobileNos
=
new
ArrayList
<>(
Arrays
.
asList
(
appointedApprovePractitioners
.
split
(
","
)));
if
(
hiringApproveMobileNos
.
contains
(
mobileNo
))
{
return
true
;
}
}
return
false
;
return
false
;
}
}
...
...
yd-api/src/main/java/com/yd/dal/service/practitioner/impl/PractitionerHiringDALServiceImpl.java
View file @
478d8503
...
@@ -268,6 +268,8 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
...
@@ -268,6 +268,8 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
return
"3"
;
return
"3"
;
case
5
:
case
5
:
return
"4"
;
return
"4"
;
case
6
:
return
"5"
;
}
}
return
null
;
return
null
;
}
}
...
@@ -285,6 +287,8 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
...
@@ -285,6 +287,8 @@ public class PractitionerHiringDALServiceImpl implements PractitionerHiringDALSe
return
Integer
.
valueOf
(
"4"
);
return
Integer
.
valueOf
(
"4"
);
case
"4"
:
case
"4"
:
return
Integer
.
valueOf
(
"5"
);
return
Integer
.
valueOf
(
"5"
);
case
"5"
:
return
Integer
.
valueOf
(
"6"
);
}
}
return
null
;
return
null
;
}
}
...
...
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