fixed:不支持自己扩展 mapper 的问题;close #I6ZTS3

This commit is contained in:
开源海哥 2023-05-06 15:30:58 +08:00
parent e5c208d888
commit af6c37ec59

View File

@ -101,7 +101,8 @@ public class TableInfoFactory {
if (genericInterfaces.length == 1) { if (genericInterfaces.length == 1) {
Type type = genericInterfaces[0]; Type type = genericInterfaces[0];
if (type instanceof ParameterizedType) { if (type instanceof ParameterizedType) {
return (Class<?>) ((ParameterizedType) type).getActualTypeArguments()[0]; Type actualTypeArgument = ((ParameterizedType) type).getActualTypeArguments()[0];
return actualTypeArgument instanceof Class ? (Class<?>) actualTypeArgument : null;
} else if (type instanceof Class) { } else if (type instanceof Class) {
return getEntityClass((Class<?>) type); return getEntityClass((Class<?>) type);
} }