疯狂的狮子Li
2021-09-07 3b5fb07c3d8340feab01c09af8ab973a497b5e02
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;
    }