!890 [mod]代码生成时默认的业务名共用类名的表前缀处理规则

* [mod]代码生成时默认的业务名共用类名的表前缀处理规则
This commit is contained in:
YueYe 2026-10-19 02:03:31 +00:00 committed by 疯狂的狮子Li
parent 12babf8178
commit 7a88f858ec

View File

@ -278,11 +278,8 @@ public class GenUtils {
* @return 业务名
*/
public static String getBusinessName(String tableName) {
int firstIndex = tableName.indexOf("_");
int nameLength = tableName.length();
String businessName = StringUtils.substring(tableName, firstIndex + 1, nameLength);
businessName = StringUtils.toCamelCase(businessName);
return businessName;
// 业务名与类名共用表前缀处理规则,仅需转为首字母小写。
return StringUtils.uncapitalize(convertClassName(tableName));
}
/**