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

This commit is contained in:
YueYe 2026-10-17 10:22:22 +08:00
parent 12babf8178
commit 3b5aa10821

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));
}
/**