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