Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
2a338e4a
Commit
2a338e4a
authored
May 21, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除角色添加事务控制
parent
2c22b53f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/main/java/com/stylefeng/guns/modular/system/service/impl/RoleServiceImpl.java
+2
-0
No files found.
src/main/java/com/stylefeng/guns/modular/system/service/impl/RoleServiceImpl.java
View file @
2a338e4a
...
@@ -40,10 +40,12 @@ public class RoleServiceImpl implements IRoleService {
...
@@ -40,10 +40,12 @@ public class RoleServiceImpl implements IRoleService {
}
}
@Override
@Override
@Transactional
(
readOnly
=
false
)
public
void
delRoleById
(
Integer
roleId
)
{
public
void
delRoleById
(
Integer
roleId
)
{
//删除角色
//删除角色
this
.
roleMapper
.
deleteById
(
roleId
);
this
.
roleMapper
.
deleteById
(
roleId
);
// 删除该角色所有的权限
// 删除该角色所有的权限
this
.
roleDao
.
deleteRolesById
(
roleId
);
this
.
roleDao
.
deleteRolesById
(
roleId
);
}
}
...
...
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