mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-20 17:48:10 +08:00
v2.9.0 & SessionListenerAdapter
v2.9.0 & SessionListenerAdapter
This commit is contained in:
@@ -55,6 +55,6 @@ public class LoginHistoryService {
|
||||
_logger.debug(" sessionId " +sessionId +" , lastlogofftime " + lastLogoffTime);
|
||||
jdbcTemplate.update(HISTORY_LOGOUT_UPDATE_STATEMENT,
|
||||
new Object[] { lastLogoffTime, sessionId },
|
||||
new int[] { Types.TIMESTAMP, Types.VARCHAR });
|
||||
new int[] { Types.VARCHAR, Types.VARCHAR });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,13 +240,13 @@ public class LoginService {
|
||||
public void setLastLoginInfo(UserInfo userInfo) {
|
||||
jdbcTemplate.update(LOGIN_USERINFO_UPDATE_STATEMENT,
|
||||
new Object[] { userInfo.getLastLoginTime(), userInfo.getLastLoginIp(), userInfo.getLoginCount() + 1, userInfo.getId() },
|
||||
new int[] { Types.TIMESTAMP, Types.VARCHAR, Types.INTEGER, Types.VARCHAR });
|
||||
new int[] { Types.VARCHAR, Types.VARCHAR, Types.INTEGER, Types.VARCHAR });
|
||||
}
|
||||
|
||||
|
||||
public void setLastLogoffInfo(UserInfo userInfo) {
|
||||
jdbcTemplate.update(LOGOUT_USERINFO_UPDATE_STATEMENT, new Object[] { userInfo.getLastLogoffTime(), userInfo.getId() },
|
||||
new int[] { Types.TIMESTAMP, Types.VARCHAR });
|
||||
new int[] { Types.VARCHAR, Types.VARCHAR });
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user