Pre Merge pull request !83 from 友杰/auto-8071125-dev-1629950351765

This commit is contained in:
友杰 2021-08-26 03:59:14 +00:00 committed by Gitee
commit 5fabb8c694

View File

@ -164,9 +164,10 @@ public class GenUtils
*/ */
public static String getBusinessName(String tableName) public static String getBusinessName(String tableName)
{ {
int lastIndex = tableName.lastIndexOf("_"); int firstIndex = tableName.indexOf("_");
int nameLength = tableName.length(); int nameLength = tableName.length();
String businessName = StringUtils.substring(tableName, lastIndex + 1, nameLength); String businessName = StringUtils.substring(tableName, firstIndex + 1, nameLength);
businessName = StringUtils.toCamelCase(businessName);
return businessName; return businessName;
} }