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
83fe3e70
Commit
83fe3e70
authored
Jun 09, 2025
by
macro
Browse files
Update UmsAdminServiceImpl.java
parent
bbd593e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-admin/src/main/java/com/macro/mall/service/impl/UmsAdminServiceImpl.java
View file @
83fe3e70
...
...
@@ -62,7 +62,7 @@ public class UmsAdminServiceImpl implements UmsAdminService {
//先从缓存中获取数据
UmsAdmin
admin
=
getCacheService
().
getAdmin
(
username
);
if
(
admin
!=
null
)
return
admin
;
//缓存中没有从数据库中获取
//缓存中没有
再
从数据库中获取
UmsAdminExample
example
=
new
UmsAdminExample
();
example
.
createCriteria
().
andUsernameEqualTo
(
username
);
List
<
UmsAdmin
>
adminList
=
adminMapper
.
selectByExample
(
example
);
...
...
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