Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
fbd09cf4
Commit
fbd09cf4
authored
Jun 21, 2020
by
ZhengJie
Browse files
[代码优化](v2.5): update
parent
157373eb
Changes
3
Show whitespace changes
Inline
Side-by-side
eladmin-common/src/main/java/me/zhengjie/utils/CacheKey.java
View file @
fbd09cf4
...
...
@@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
me.zhengjie.utils
;
...
...
@@ -23,6 +22,7 @@ package me.zhengjie.utils;
* @apiNote: 关于缓存的Key 集合
*/
public
interface
CacheKey
{
/**
* 内置 用户、岗位、应用、菜单、角色 相关key
*/
...
...
@@ -41,7 +41,6 @@ public interface CacheKey {
/**
* s数据
*/
String
DATE_USER
=
"data::user:"
;
/**
* 菜单
...
...
eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/ExecutionJob.java
View file @
fbd09cf4
...
...
@@ -28,6 +28,7 @@ import me.zhengjie.modules.quartz.service.QuartzJobService;
import
me.zhengjie.service.EmailService
;
import
me.zhengjie.utils.RedisUtils
;
import
me.zhengjie.utils.SpringContextHolder
;
import
me.zhengjie.utils.StringUtils
;
import
me.zhengjie.utils.ThrowableUtil
;
import
org.quartz.JobExecutionContext
;
import
org.springframework.scheduling.annotation.Async
;
...
...
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java
View file @
fbd09cf4
...
...
@@ -234,7 +234,7 @@ public class RoleServiceImpl implements RoleService {
private
void
cleanCache
(
Role
resources
,
List
<
User
>
users
)
{
// 清理缓存
if
(
CollectionUtil
.
isNotEmpty
(
users
))
{
users
.
stream
().
forEach
(
item
->
{
users
.
forEach
(
item
->
{
userCacheClean
.
cleanUserCache
(
item
.
getUsername
());
});
Set
<
Long
>
userIds
=
users
.
stream
().
map
(
User:
:
getId
).
collect
(
Collectors
.
toSet
());
...
...
Write
Preview
Supports
Markdown
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