Selaa lähdekoodia

fix: 修复秋秋发现的一个属性名转换错误

825944942@qq.com 5 vuotta sitten
vanhempi
commit
df350f88c1

+ 1 - 1
mybatis-plus-generator/src/main/java/com/baomidou/mybatisplus/generator/config/po/TableField.java

@@ -115,7 +115,7 @@ public class TableField {
             return propertyName.toUpperCase();
         }
         if (Character.isLowerCase(propertyName.charAt(1))) {
-            return Character.toLowerCase(propertyName.charAt(0)) + propertyName.substring(1);
+            return Character.toUpperCase(propertyName.charAt(0)) + propertyName.substring(1);
         }
         return propertyName;
     }