疯狂的狮子Li
2021-08-26 ee927ad6dc103c797e0926e44f88cfce181839b5
!83 update 优化生成的业务名
Merge pull request !83 from 友杰/auto-8071125-dev-1629950351765
已修改1个文件
5 ■■■■■ 文件已修改
ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
    }