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
af46fc71
Commit
af46fc71
authored
Apr 25, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色修改时,删除缓存的增加
parent
e06036c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/main/java/com/stylefeng/guns/modular/system/controller/RoleController.java
+8
-0
No files found.
src/main/java/com/stylefeng/guns/modular/system/controller/RoleController.java
View file @
af46fc71
...
@@ -3,12 +3,14 @@ package com.stylefeng.guns.modular.system.controller;
...
@@ -3,12 +3,14 @@ package com.stylefeng.guns.modular.system.controller;
import
com.stylefeng.guns.common.annotion.Permission
;
import
com.stylefeng.guns.common.annotion.Permission
;
import
com.stylefeng.guns.common.annotion.log.BussinessLog
;
import
com.stylefeng.guns.common.annotion.log.BussinessLog
;
import
com.stylefeng.guns.common.constant.Const
;
import
com.stylefeng.guns.common.constant.Const
;
import
com.stylefeng.guns.common.constant.cache.Cache
;
import
com.stylefeng.guns.common.constant.factory.ConstantFactory
;
import
com.stylefeng.guns.common.constant.factory.ConstantFactory
;
import
com.stylefeng.guns.common.constant.tips.Tip
;
import
com.stylefeng.guns.common.constant.tips.Tip
;
import
com.stylefeng.guns.common.controller.BaseController
;
import
com.stylefeng.guns.common.controller.BaseController
;
import
com.stylefeng.guns.common.exception.BizExceptionEnum
;
import
com.stylefeng.guns.common.exception.BizExceptionEnum
;
import
com.stylefeng.guns.common.exception.BussinessException
;
import
com.stylefeng.guns.common.exception.BussinessException
;
import
com.stylefeng.guns.common.node.ZTreeNode
;
import
com.stylefeng.guns.common.node.ZTreeNode
;
import
com.stylefeng.guns.core.cache.CacheKit
;
import
com.stylefeng.guns.core.log.LogObjectHolder
;
import
com.stylefeng.guns.core.log.LogObjectHolder
;
import
com.stylefeng.guns.core.util.Convert
;
import
com.stylefeng.guns.core.util.Convert
;
import
com.stylefeng.guns.core.util.ToolUtil
;
import
com.stylefeng.guns.core.util.ToolUtil
;
...
@@ -139,6 +141,9 @@ public class RoleController extends BaseController {
...
@@ -139,6 +141,9 @@ public class RoleController extends BaseController {
throw
new
BussinessException
(
BizExceptionEnum
.
REQUEST_NULL
);
throw
new
BussinessException
(
BizExceptionEnum
.
REQUEST_NULL
);
}
}
this
.
roleMapper
.
updateById
(
role
);
this
.
roleMapper
.
updateById
(
role
);
//删除缓存
CacheKit
.
removeAll
(
Cache
.
CONSTANT
);
return
SUCCESS_TIP
;
return
SUCCESS_TIP
;
}
}
...
@@ -157,6 +162,9 @@ public class RoleController extends BaseController {
...
@@ -157,6 +162,9 @@ public class RoleController extends BaseController {
// 删除该角色所有的权限
// 删除该角色所有的权限
this
.
roleDao
.
deleteRolesById
(
roleId
);
this
.
roleDao
.
deleteRolesById
(
roleId
);
//删除缓存
CacheKit
.
removeAll
(
Cache
.
CONSTANT
);
return
SUCCESS_TIP
;
return
SUCCESS_TIP
;
}
}
...
...
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