代码生成模块,生成业务名由表名最后单词修改为表名全称的驼峰式命名,解决生成类名容易冲突问题,可读性更强
parent
725c7dcea2
commit
923b6f5f0f
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue