日期类型调整为date

This commit is contained in:
MaxKey
2024-05-04 07:28:36 +08:00
parent 9ff95bf74a
commit ce09413c79
37 changed files with 425 additions and 355 deletions

View File

@@ -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;
}
}

View File

@@ -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();

View File

@@ -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;
}