fix: FlexConfiguration replace resultMap error

This commit is contained in:
开源海哥 2023-09-23 10:43:11 +08:00
parent 0e1467a77c
commit 0e27cd248f

View File

@ -188,7 +188,8 @@ public class FlexConfiguration extends Configuration {
Class<?> clazz = resultMap.getType();
//判断是否为表实体类
if (clazz.getDeclaredAnnotation(Table.class) != null) {
ms = replaceResultMap(ms, getTableInfo(ms));
TableInfo tableInfo = TableInfoFactory.ofEntityClass(clazz);
ms = replaceResultMap(ms, tableInfo);
}
}
}