mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-23 22:06:39 +08:00
fix-user:如果是数据库中取的值 那么进行缓存
This commit is contained in:
parent
7335e987b8
commit
3944766691
@ -212,10 +212,14 @@ public class LoginService {
|
||||
//获取员工登录信息
|
||||
loginEmployeeDetail = loadLoginInfo(employeeEntity);
|
||||
|
||||
if(ObjectUtil.isNotEmpty(loginEmployeeDetail))return loginEmployeeDetail;
|
||||
if(ObjectUtil.isEmpty(loginEmployeeDetail))
|
||||
return null;
|
||||
|
||||
// 放入缓存
|
||||
loginUserDetailCache.put(employeeEntity.getEmployeeId(), loginEmployeeDetail);
|
||||
|
||||
|
||||
return null;
|
||||
return loginEmployeeDetail;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user