miemie преди 5 години
родител
ревизия
2c0de14ef2
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/metadata/TableFieldInfo.java

+ 2 - 2
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/metadata/TableFieldInfo.java

@@ -175,7 +175,7 @@ public class TableFieldInfo implements Constants {
             column = String.format(columnFormat, column);
         }
         this.column = column;
-        if (TableInfoHelper.checkRelated(tableInfo.isUnderCamel(), this.property, this.column)) {
+        if (!TableInfoHelper.checkRelated(tableInfo.isUnderCamel(), this.property, this.column)) {
             this.sqlSelect = column;
         } else {
             String propertyFormat = dbConfig.getPropertyFormat();
@@ -250,7 +250,7 @@ public class TableFieldInfo implements Constants {
         }
 
         this.column = column;
-        if (TableInfoHelper.checkRelated(tableInfo.isUnderCamel(), this.property, this.column)) {
+        if (!TableInfoHelper.checkRelated(tableInfo.isUnderCamel(), this.property, this.column)) {
             this.sqlSelect = column;
         } else {
             String propertyFormat = dbConfig.getPropertyFormat();