代码生成模块,生成业务名由表名最后单词修改为表名全称的驼峰式命名,解决生成类名容易冲突问题,可读性更强

pull/1065/head
chenlf 2025-07-17 10:53:22 +08:00
parent 725c7dcea2
commit 923b6f5f0f
1 changed files with 1 additions and 3 deletions

View File

@ -163,9 +163,7 @@ public class GenUtils
*/
public static String getBusinessName(String tableName)
{
int lastIndex = tableName.lastIndexOf("_");
int nameLength = tableName.length();
return StringUtils.substring(tableName, lastIndex + 1, nameLength);
return StringUtils.toCamelCase(tableName);
}
/**