From a5dce6cccce2e76cb2b68119ced1b33e245ad935 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 2 Feb 2020 15:43:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2db=E5=AD=97=E6=AE=B5=E5=90=8D?= =?UTF-8?q?=E4=B8=BA=E4=B8=80=E4=B8=AA=E5=AD=97=E6=AF=8D=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E7=94=9F=E6=88=90=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi/src/main/resources/vm/java/domain.java.vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi/src/main/resources/vm/java/domain.java.vm b/ruoyi/src/main/resources/vm/java/domain.java.vm index ee49071a9..137727816 100644 --- a/ruoyi/src/main/resources/vm/java/domain.java.vm +++ b/ruoyi/src/main/resources/vm/java/domain.java.vm @@ -43,7 +43,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)}) @@ -64,7 +64,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)})