Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RS链接获取时间java localdatetime转换失败 #28139

Open
Cuddlesz opened this issue Sep 26, 2024 · 1 comment
Open

RS链接获取时间java localdatetime转换失败 #28139

Cuddlesz opened this issue Sep 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Cuddlesz
Copy link

定义bean中的ts 为LocalDateTime类型中时
走到了AbstractResultSet类的
public T getObject(String columnLabel, Class type) throws SQLException {
return this.getObject(this.findColumn(columnLabel), type);
}
方法
然而RestfulResultSet没有这个的实现
copy一个BlockResultSet 的
public T getObject(int columnIndex, Class type) throws SQLException {
Object value = this.getObject(columnIndex);
if (value == null) {
return null;
} else if (type.isInstance(value)) {
return type.cast(value);
} else {
略。。。。
}
}
应该就能解决?

@Cuddlesz Cuddlesz added the bug Something isn't working label Sep 26, 2024
@SoberChina
Copy link

我是映射成Timestamp 然后再转的……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants