Update UmsAdminServiceImpl.java
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user