mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-11-04 06:15:32 +08:00
parent
12babf8178
commit
7a88f858ec
@ -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