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
d0f51595
Commit
d0f51595
authored
Jan 20, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
审批问题2
parent
3d0b654f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
+17
-5
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringBasicInfoMapper.xml
+3
-0
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsHiringServiceImpl.java
View file @
d0f51595
...
@@ -9,6 +9,7 @@ import com.yd.dal.entity.customer.*;
...
@@ -9,6 +9,7 @@ import com.yd.dal.entity.customer.*;
import
com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps
;
import
com.yd.dal.entity.meta.MdPractitionerHiringApproveSteps
;
import
com.yd.dal.entity.user.AclUser
;
import
com.yd.dal.entity.user.AclUser
;
import
com.yd.dal.mapper.customer.AclPractitionerHiringBasicInfoMapper
;
import
com.yd.dal.mapper.customer.AclPractitionerHiringBasicInfoMapper
;
import
com.yd.dal.mapper.customer.AclPractitionerHiringMembershipMapper
;
import
com.yd.dal.mapper.customer.AclPractitionerMapper
;
import
com.yd.dal.mapper.customer.AclPractitionerMapper
;
import
com.yd.dal.service.agms.AgmsHiringDALService
;
import
com.yd.dal.service.agms.AgmsHiringDALService
;
import
com.yd.dal.service.customer.*
;
import
com.yd.dal.service.customer.*
;
...
@@ -53,6 +54,8 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -53,6 +54,8 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
private
PractitionerHiringDALService
practitionerHiringDalService
;
private
PractitionerHiringDALService
practitionerHiringDalService
;
@Autowired
@Autowired
private
AclPractitionerMapper
aclPractitionerMapper
;
private
AclPractitionerMapper
aclPractitionerMapper
;
@Autowired
private
AclPractitionerHiringMembershipMapper
membershipMapper
;
@Autowired
@Autowired
public
void
setAgmsHiringDalService
(
AgmsHiringDALService
agmsHiringDalService
){
public
void
setAgmsHiringDalService
(
AgmsHiringDALService
agmsHiringDalService
){
...
@@ -318,7 +321,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -318,7 +321,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
}
}
//不是他
//不是他
boolean
flag
=
this
.
isHasNextStep
(
loginPractitionerId
,
mobileNo
,
nextStep
);
boolean
flag
=
this
.
isHasNextStep
(
loginPractitionerId
,
mobileNo
,
basicInfoId
,
nextStep
);
if
(!
flag
)
{
if
(!
flag
)
{
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
return
;
return
;
...
@@ -328,7 +331,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -328,7 +331,7 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
responseVO
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
}
}
private
boolean
isHasNextStep
(
Long
loginPractitionerId
,
String
mobileNo
,
MdPractitionerHiringApproveSteps
nextStep
)
{
private
boolean
isHasNextStep
(
Long
loginPractitionerId
,
String
mobileNo
,
Long
basicInfoId
,
MdPractitionerHiringApproveSteps
nextStep
)
{
// 先判断是否是AGMS中审批的人员
// 先判断是否是AGMS中审批的人员
String
appointedApprovePractitioners
=
nextStep
.
getAppointedApprovePractitioners
();
String
appointedApprovePractitioners
=
nextStep
.
getAppointedApprovePractitioners
();
List
<
String
>
hiringApproveMobileNos
=
new
ArrayList
<>(
Arrays
.
asList
(
appointedApprovePractitioners
.
split
(
","
)));
List
<
String
>
hiringApproveMobileNos
=
new
ArrayList
<>(
Arrays
.
asList
(
appointedApprovePractitioners
.
split
(
","
)));
...
@@ -336,9 +339,18 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
...
@@ -336,9 +339,18 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
return
true
;
return
true
;
}
}
// 不是AGMS审批人;只有既是辅导人又是团队长才有下一步
// 不是AGMS审批人;只有既是辅导人又是团队长才有下一步
int
approvalIdentity
=
practitionerHiringDalService
.
queryApprovalIdentity
(
loginPractitionerId
);
if
(!
CommonUtil
.
isNullOrZero
(
loginPractitionerId
))
{
if
(
approvalIdentity
==
0
)
{
String
approveRole
=
nextStep
.
getApproveRole
();
return
true
;
if
(
StringUtils
.
isNotEmpty
(
approveRole
))
{
AclPractitionerHiringMembership
membership
=
membershipMapper
.
selectByHiringBasicInfoId
(
basicInfoId
);
if
(
membership
!=
null
)
{
if
(
loginPractitionerId
.
equals
(
membership
.
getMentorPractitionerId
())
||
loginPractitionerId
.
equals
(
membership
.
getSubsystemOwnerId
())
)
{
return
true
;
}
}
}
}
}
return
false
;
return
false
;
}
}
...
...
yd-api/src/main/resources/mapper/customer/AclPractitionerHiringBasicInfoMapper.xml
View file @
d0f51595
...
@@ -360,6 +360,9 @@
...
@@ -360,6 +360,9 @@
<if
test=
"personalSignOssPath != null"
>
<if
test=
"personalSignOssPath != null"
>
personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR},
personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"approveStatus != null"
>
approve_status = #{approveStatus,jdbcType=VARCHAR},
</if>
<if
test=
"isActive != null"
>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
is_active = #{isActive,jdbcType=INTEGER},
</if>
</if>
...
...
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