聂秋荣 6 سال پیش
والد
کامیت
3fff024c99
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/toolkit/TableInfoHelper.java

+ 1 - 0
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/toolkit/TableInfoHelper.java

@@ -356,6 +356,7 @@ public class TableInfoHelper {
                 tableInfo.setIdType(dbConfig.getIdType());
                 tableInfo.setKeyColumn(column);
                 tableInfo.setKeyProperty(field.getName());
+                tableInfo.setParentClass(field.getDeclaringClass());
                 return true;
             } else {
                 throwExceptionId(clazz);