Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
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 e655fe84
authored
Oct 07, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:实验代码
1 parent
23414ce5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
project-user/src/main/java/com/dituhui/pea/user/service/RoleService.java
project-user/src/main/java/com/dituhui/pea/user/service/RoleService.java
View file @
e655fe8
...
@@ -114,6 +114,9 @@ public class RoleService {
...
@@ -114,6 +114,9 @@ public class RoleService {
public
void
deleteRole
(
String
roleId
)
{
public
void
deleteRole
(
String
roleId
)
{
// 查询角色是否存在
// 查询角色是否存在
RoleEntity
roleEntity
=
roleDao
.
findById
(
roleId
).
orElse
(
null
);
RoleEntity
roleEntity
=
roleDao
.
findById
(
roleId
).
orElse
(
null
);
roleEntity
.
setUpdatedTime
(
new
Date
());
roleEntity
.
setNotes
(
"chakhca"
);
roleDao
.
save
(
roleEntity
);
if
(
ObjectUtil
.
isNull
(
roleEntity
))
{
if
(
ObjectUtil
.
isNull
(
roleEntity
))
{
throw
new
BusinessException
(
StatusCodeEnum
.
ROLE_DOES_NOT_EXIST
);
throw
new
BusinessException
(
StatusCodeEnum
.
ROLE_DOES_NOT_EXIST
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment