mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-19 17:13:52 +08:00
fix-user:如果是数据库中取的值 那么进行缓存
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user