diff --git a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm index 91180253..aefb973e 100644 --- a/ruoyi-generator/src/main/resources/vm/java/domain.java.vm +++ b/ruoyi-generator/src/main/resources/vm/java/domain.java.vm @@ -51,7 +51,7 @@ public class ${ClassName} extends ${Entity} #end #foreach ($column in $columns) #if(!$table.isSuperColumn($column.javaField)) -#if($column.javaField.substring(1,2).matches("[A-Z]")) +#if($column.javaField > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) #set($AttrName=$column.javaField) #else #set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)}) @@ -72,7 +72,7 @@ public class ${ClassName} extends ${Entity} public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) #foreach ($column in $columns) -#if($column.javaField.substring(1,2).matches("[A-Z]")) +#if($column.javaField > 2 && $column.javaField.substring(1,2).matches("[A-Z]")) #set($AttrName=$column.javaField) #else #set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})