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
6972b544
Commit
6972b544
authored
Aug 03, 2025
by
wujipeng
Browse files
删除用户
parent
204c367b
Changes
3
Show whitespace changes
Inline
Side-by-side
src/main/java/com/platform/controller/UserController.java
View file @
6972b544
...
...
@@ -49,4 +49,10 @@ public class UserController extends BaseController {
public
Result
relationPage
(
@RequestBody
UserDTO
userDTO
)
{
return
Result
.
data
(
userService
.
relationPage
(
userDTO
));
}
@ApiModelProperty
(
value
=
"删除用户"
)
@DeleteMapping
(
"/{id}"
)
public
Result
delete
(
@PathVariable
String
id
)
{
return
Result
.
data
(
userService
.
delete
(
id
));
}
}
src/main/java/com/platform/service/UserService.java
View file @
6972b544
...
...
@@ -6,6 +6,7 @@ import com.platform.model.entity.ExcelDataEntity;
import
com.platform.model.entity.UserEntity
;
import
com.platform.model.vo.EveryoneVO
;
import
com.platform.model.vo.UserVO
;
import
com.sun.org.apache.xpath.internal.operations.Bool
;
import
java.util.List
;
...
...
@@ -28,4 +29,6 @@ public interface UserService extends IService<UserEntity> {
List
<
ExcelDataEntity
>
cashFlow
(
UserDTO
userDTO
);
EveryoneVO
relationPage
(
UserDTO
userDTO
);
Boolean
delete
(
String
id
);
}
src/main/java/com/platform/service/impl/UserServiceImpl.java
View file @
6972b544
...
...
@@ -201,4 +201,11 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> impleme
PageHelper
.
clearPage
();
return
everyoneVO
;
}
@Override
public
Boolean
delete
(
String
id
)
{
UserEntity
user
=
getById
(
id
);
excelDataService
.
remove
(
new
LambdaQueryWrapper
<
ExcelDataEntity
>().
eq
(
ExcelDataEntity:
:
getPayUserName
,
user
.
getUserName
()));
return
removeById
(
id
);
}
}
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