|
|
|
@ -63,6 +63,7 @@ public class LogApiServiceImpl extends ServiceImpl<LogApiMapper, LogApi> impleme |
|
|
|
String userId = key.replace("user:login:", ""); |
|
|
|
String userId = key.replace("user:login:", ""); |
|
|
|
String currentUsername = (String) hashOps.get(key, "username"); |
|
|
|
String currentUsername = (String) hashOps.get(key, "username"); |
|
|
|
String currentDeptId = (String) hashOps.get(key, "deptId"); |
|
|
|
String currentDeptId = (String) hashOps.get(key, "deptId"); |
|
|
|
|
|
|
|
Long loginCount = (Long) hashOps.get(key, "loginCount"); |
|
|
|
// 过滤条件:根据 username 和 deptId 筛选
|
|
|
|
// 过滤条件:根据 username 和 deptId 筛选
|
|
|
|
boolean matchUsername = username == null || currentUsername != null && currentUsername.contains(username); |
|
|
|
boolean matchUsername = username == null || currentUsername != null && currentUsername.contains(username); |
|
|
|
boolean matchDept = deptId == null || currentDeptId != null && currentDeptId.equals(deptId); |
|
|
|
boolean matchDept = deptId == null || currentDeptId != null && currentDeptId.equals(deptId); |
|
|
|
@ -75,7 +76,8 @@ public class LogApiServiceImpl extends ServiceImpl<LogApiMapper, LogApi> impleme |
|
|
|
currentUsername, |
|
|
|
currentUsername, |
|
|
|
loginIp, |
|
|
|
loginIp, |
|
|
|
currentDeptId, |
|
|
|
currentDeptId, |
|
|
|
lastLoginTime |
|
|
|
lastLoginTime, |
|
|
|
|
|
|
|
loginCount |
|
|
|
)); |
|
|
|
)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|