Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
relation
Commits
8b58ecae
Commit
8b58ecae
authored
Aug 01, 2025
by
wujipeng
Browse files
用户更新增加关系
parent
b99cbb59
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
8b58ecae
package
com.platform.service.impl
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.ListUtil
;
import
cn.hutool.core.map.MapUtil
;
import
com.alibaba.fastjson2.JSON
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
...
...
@@ -19,6 +20,7 @@ import com.platform.utils.IdCardUtils;
import
com.platform.utils.StringUtils
;
import
org.checkerframework.checker.nullness.qual.Nullable
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.ObjectUtils
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
...
...
@@ -53,6 +55,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
@Override
public
boolean
updateUser
(
UserDTO
userDTO
)
{
List
<
RelationShipDTO
>
relationShipList
=
userDTO
.
getRelationShipList
();
if
(!
ObjectUtils
.
isEmpty
(
relationShipList
)){
userDTO
.
setRelationShip
(
JSON
.
toJSONString
(
relationShipList
));
}
updateById
(
userDTO
);
//先删除账户信息
userAccountService
.
deleteByUserName
(
userDTO
.
getUserName
());
...
...
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