mirror of
https://github.com/macrozheng/mall.git
synced 2025-06-27 04:20:01 +00:00
Update UmsAdminServiceImpl.java
This commit is contained in:
parent
bbd593e869
commit
83fe3e707b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user