From e85334bacd8ee7460a7d2bf81fe560a9d16b95c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Thu, 16 Jul 2020 13:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=99=A8=E4=B8=9A=E5=8A=A1=E5=90=8D=20=E5=8F=AA=E4=BC=9A?= =?UTF-8?q?=E6=88=AA=E5=8F=96=E8=A1=A8=E4=B8=8B=E5=88=92=E7=BA=BF=E7=9A=84?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E4=B8=AA=20=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BE=88=E5=A4=9Acontroller=20=E4=BC=9A=E9=87=8D=E5=90=8D=20?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/project/tool/gen/util/GenUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi/src/main/java/com/ruoyi/project/tool/gen/util/GenUtils.java b/ruoyi/src/main/java/com/ruoyi/project/tool/gen/util/GenUtils.java index ad4293a6f..f1f9243de 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/tool/gen/util/GenUtils.java +++ b/ruoyi/src/main/java/com/ruoyi/project/tool/gen/util/GenUtils.java @@ -147,10 +147,10 @@ public class GenUtils */ public static String getBusinessName(String tableName) { - int lastIndex = tableName.lastIndexOf("_"); + int lastIndex = tableName.indexOf("_"); int nameLength = tableName.length(); String businessName = StringUtils.substring(tableName, lastIndex + 1, nameLength); - return businessName; + return StringUtils.toCamelCase(businessName); } /**