mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-14 23:01:36 +08:00
chore: continew-starter 2.0.0 => 2.0.1
This commit is contained in:
@@ -29,6 +29,7 @@ import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
import top.continew.admin.common.constant.RegexConstants;
|
||||
import top.continew.starter.core.util.StrUtils;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
@@ -130,9 +131,8 @@ public class GenConfigDO implements Serializable {
|
||||
}
|
||||
|
||||
public String getClassNamePrefix() {
|
||||
String rawClassName = StrUtil.isNotBlank(this.tablePrefix)
|
||||
? StrUtil.removePrefix(this.tableName, this.tablePrefix)
|
||||
: this.tableName;
|
||||
String rawClassName = StrUtils.blankToDefault(this.tablePrefix, this.tableName, prefix -> StrUtil
|
||||
.removePrefix(this.tableName, prefix));
|
||||
return StrUtil.upperFirst(StrUtil.toCamelCase(rawClassName));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user