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
cc8b1308
Commit
cc8b1308
authored
Aug 05, 2025
by
wujipeng
Browse files
删除用户优化
parent
e88f7128
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
cc8b1308
...
...
@@ -205,11 +205,12 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
@Override
@Transactional
public
Boolean
delete
(
String
userName
)
{
excelDataService
.
remove
(
new
LambdaQueryWrapper
<
ExcelDataEntity
>().
eq
(
ExcelDataEntity:
:
getPayUserName
,
userName
));
//删除关系
userRelationService
.
remove
(
new
LambdaQueryWrapper
<
UserRelationEntity
>().
eq
(
UserRelationEntity:
:
getUserName
,
userName
));
userRelationService
.
remove
(
new
LambdaQueryWrapper
<
UserRelationEntity
>().
eq
(
UserRelationEntity:
:
getOtherName
,
userName
));
//删除账户
userAccountService
.
deleteByUserName
(
userName
);
return
remove
(
new
LambdaQueryWrapper
<
UserEntity
>().
eq
(
UserEntity:
:
getUserName
,
userName
));
}
}
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