mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-11-04 14:19:44 +08:00
[mod]代码生成时默认的业务名共用类名的表前缀处理规则
This commit is contained in:
parent
12babf8178
commit
3b5aa10821
@ -278,11 +278,8 @@ public class GenUtils {
|
|||||||
* @return 业务名
|
* @return 业务名
|
||||||
*/
|
*/
|
||||||
public static String getBusinessName(String tableName) {
|
public static String getBusinessName(String tableName) {
|
||||||
int firstIndex = tableName.indexOf("_");
|
// 业务名与类名共用表前缀处理规则,仅需转为首字母小写。
|
||||||
int nameLength = tableName.length();
|
return StringUtils.uncapitalize(convertClassName(tableName));
|
||||||
String businessName = StringUtils.substring(tableName, firstIndex + 1, nameLength);
|
|
||||||
businessName = StringUtils.toCamelCase(businessName);
|
|
||||||
return businessName;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user