Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fb19c2c4
authored
Nov 07, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:长者绑定问题
parent
454f3d96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderChildrenInfoServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderChildrenInfoServiceImpl.java
View file @
fb19c2c4
...
...
@@ -215,19 +215,20 @@ public class PlatElderChildrenInfoServiceImpl extends ServiceImpl<PlatElderChild
throw
new
BusinessException
(
CodeMessageEnum
.
PLATFORM_ERROR_CHILDREN_ELDER_ID_BIND_DUPLICATE
);
}
PlatElderChildrenInfo
newChildrenInfo
=
new
PlatElderChildrenInfo
();
PlatElder
platElder
=
platElderService
.
getById
(
elderId
);
c
hildrenInfo
.
setTenantId
(
platElder
.
getTenantId
());
newC
hildrenInfo
.
setTenantId
(
platElder
.
getTenantId
());
PlatOrgSplitDTO
vo
=
platOrgService
.
getOrgSplitVO
(
platElder
.
getOrgId
());
c
hildrenInfo
.
setOrgId
(
platElder
.
getOrgId
());
c
hildrenInfo
.
setCityOrgId
(
vo
.
getCityOrgId
());
c
hildrenInfo
.
setDistrictOrgId
(
vo
.
getDistrictOrgId
());
c
hildrenInfo
.
setStreetOrgId
(
vo
.
getStreetOrgId
());
c
hildrenInfo
.
setOrgPath
(
vo
.
getOrgPath
());
c
hildrenInfo
.
setElderId
(
elderId
);
newC
hildrenInfo
.
setOrgId
(
platElder
.
getOrgId
());
newC
hildrenInfo
.
setCityOrgId
(
vo
.
getCityOrgId
());
newC
hildrenInfo
.
setDistrictOrgId
(
vo
.
getDistrictOrgId
());
newC
hildrenInfo
.
setStreetOrgId
(
vo
.
getStreetOrgId
());
newC
hildrenInfo
.
setOrgPath
(
vo
.
getOrgPath
());
newC
hildrenInfo
.
setElderId
(
elderId
);
updateById
(
c
hildrenInfo
);
save
(
newC
hildrenInfo
);
}
...
...
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