mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 20:50:14 +08:00
日期类型调整为date
This commit is contained in:
@@ -188,7 +188,7 @@ public class SessionManagerFactory implements SessionManager{
|
||||
history.setUserId(rs.getString(3));
|
||||
history.setUsername(rs.getString(4));
|
||||
history.setDisplayName(rs.getString(5));
|
||||
history.setLoginTime(rs.getString(6));
|
||||
history.setLoginTime(rs.getTimestamp(6));
|
||||
return history;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ public abstract class AbstractAuthenticationRealm {
|
||||
|
||||
_logger.debug("user session id is {} . ",historyLogin.getSessionId());
|
||||
|
||||
userInfo.setLastLoginTime(DateUtils.formatDateTime(new Date()));
|
||||
userInfo.setLastLoginTime(new Date());
|
||||
userInfo.setLastLoginIp(WebContext.getRequestIpAddress());
|
||||
|
||||
Browser browser = resolveBrowser();
|
||||
|
||||
@@ -138,8 +138,8 @@ public class JdbcSocialsAssociateService implements SocialsAssociateService{
|
||||
socialsAssociate.setAccessToken(rs.getString(6));
|
||||
socialsAssociate.setSocialUserInfo(rs.getString(7));
|
||||
socialsAssociate.setExAttribute(rs.getString(8));
|
||||
socialsAssociate.setCreatedDate(rs.getString(9));
|
||||
socialsAssociate.setUpdatedDate(rs.getString(10));
|
||||
socialsAssociate.setCreatedDate(rs.getTimestamp(9));
|
||||
socialsAssociate.setUpdatedDate(rs.getTimestamp(10));
|
||||
socialsAssociate.setInstId(rs.getString(11));
|
||||
return socialsAssociate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user