疯狂的狮子li
2021-09-09 e1c993c2779462250acd61c4033f4bf6d8525bf5
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;
    }