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
ef4d41c0
Commit
ef4d41c0
authored
Aug 04, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报聘辅导人可以不填-修改审批流程
parent
c87cd791
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
+12
-9
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
View file @
ef4d41c0
...
...
@@ -852,19 +852,12 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
AclPractitionerHiringMembership
hiringMemberShip
=
membershipMapper
.
selectByHiringBasicInfoId
(
basicInfoId
);
if
(
basicInfoId
==
null
||
hiringMemberShip
==
null
)
{
System
.
out
.
println
(
"------------hiringMemberShip-----------------"
);
System
.
out
.
println
(
hiringMemberShip
);
System
.
out
.
println
(
"------------basicInfoId-----------------"
);
System
.
out
.
println
(
basicInfoId
);
resp
.
setCommonResult
(
new
CommonResult
(
false
,
"保存失败"
));
return
resp
;
}
// 计算审批流程
basicInfo
.
setApproveStatus
(
this
.
handleApproveStatus
(
hiringMemberShip
));
if
(
Long
.
valueOf
(
"30"
).
equals
(
hiringMemberShip
.
getMdDropOptionId
()))
{
basicInfo
.
setApproveStatus
(
"2"
);
}
else
{
basicInfo
.
setApproveStatus
(
"-2"
);
}
basicInfoMapper
.
updateByPrimaryKeySelective
(
basicInfo
);
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
...
...
@@ -876,6 +869,16 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
return
resp
;
}
private
String
handleApproveStatus
(
AclPractitionerHiringMembership
hiringMemberShip
)
{
if
(
Long
.
valueOf
(
"30"
).
equals
(
hiringMemberShip
.
getMdDropOptionId
()))
{
return
"2"
;
}
if
(
hiringMemberShip
.
getMentor
()
==
null
||
hiringMemberShip
.
getMentorPractitionerId
()
==
null
)
{
return
"2"
;
}
return
"-2"
;
}
@SuppressWarnings
(
"unchecked"
)
private
boolean
addStepToList
(
HiringApproveRequestVO
requestVO
,
int
stepSeq
,
...
...
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