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
wwwanlingxiao
mall
Commits
2be51beb
Commit
2be51beb
authored
Apr 24, 2023
by
macro
Browse files
Update UmsAdminServiceImpl.java
parent
7ff60a1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java
View file @
2be51beb
...
...
@@ -225,12 +225,15 @@ public class UmsAdminServiceImpl implements UmsAdminService {
@Override
public
List
<
UmsResource
>
getResourceList
(
Long
adminId
)
{
//先从缓存中获取数据
List
<
UmsResource
>
resourceList
=
getCacheService
().
getResourceList
(
adminId
);
if
(
CollUtil
.
isNotEmpty
(
resourceList
)){
return
resourceList
;
}
//缓存中没有从数据库中获取
resourceList
=
adminRoleRelationDao
.
getResourceList
(
adminId
);
if
(
CollUtil
.
isNotEmpty
(
resourceList
)){
//将数据库中的数据存入缓存中
getCacheService
().
setResourceList
(
adminId
,
resourceList
);
}
return
resourceList
;
...
...
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