This commit is contained in:
Looly
2023-08-08 19:40:25 +08:00
parent cd53378ae3
commit 2c060433b9
5 changed files with 18 additions and 19 deletions

View File

@@ -255,6 +255,11 @@ public class JSONConverter implements Converter {
return null;
}
// 日期、java.sql中的日期以及自定义日期统一处理
if(Date.class.isAssignableFrom(rowType)){
return (T) DateConverter.INSTANCE.convert(type, value);
}
// 集合转换(含有泛型参数,不可以默认强转)
if (Collection.class.isAssignableFrom(rowType)) {
return (T) CollectionConverter.INSTANCE.convert(type, value);