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
f98104a6
Commit
f98104a6
authored
Dec 29, 2020
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存组织关系修改
parent
3c0b8d36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
+3
-4
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerHiringServiceImpl.java
View file @
f98104a6
...
...
@@ -73,8 +73,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
SaveMembershipResponseVO
resp
=
new
SaveMembershipResponseVO
();
try
{
Long
basicInfoId
=
requestVO
.
getHiringBasicInfoId
();
AclPractitionerHiringBasicInfo
basicInfo1
=
basicInfoMapper
.
selectByPrimaryKey
(
basicInfoId
);
if
(
basicInfo1
==
null
)
{
if
(
basicInfoId
==
null
)
{
// 先保存ag_acl_practitioner_hiring_basic_info,获取hiringBasicInfoId
AclPractitionerHiringBasicInfo
basicInfo
=
new
AclPractitionerHiringBasicInfo
();
basicInfo
.
setName
(
requestVO
.
getName
());
...
...
@@ -101,7 +100,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
// 仅需更新组织关系
AclPractitionerHiringMembership
membership
=
membershipMapper
.
selectByHiringBasicInfoId
(
basicInfoId
);
BeanUtils
.
copyProperties
(
requestVO
,
membership
);
membership
.
setHiringBasicInfoId
(
basicInfo
1
.
getId
()
);
membership
.
setHiringBasicInfoId
(
basicInfo
Id
);
membership
.
setIsActive
(
1
);
Date
curDate
=
new
Date
();
...
...
@@ -111,7 +110,7 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
membership
.
setUpdatedBy
(
loginId
);
membershipMapper
.
updateByPrimaryKeySelective
(
membership
);
resp
.
setHiringBasicInfoId
(
basicInfo
1
.
getId
()
);
resp
.
setHiringBasicInfoId
(
basicInfo
Id
);
}
resp
.
setCommonResult
(
new
CommonResult
(
true
,
ZHBErrorConfig
.
getErrorInfo
(
"800000"
)));
...
...
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