疯狂的狮子li
2021-09-14 e314a5e33337af6b627d3cf31e2aa17419e6822b
ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java
@@ -164,9 +164,10 @@
     */
    public static String getBusinessName(String tableName)
    {
        int lastIndex = tableName.lastIndexOf("_");
        int firstIndex = tableName.indexOf("_");
        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;
    }