mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-11-02 13:31:49 +08:00
Pre Merge pull request !890 from YueYe/dev
This commit is contained in:
commit
d03c07cb9b
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user