chore: continew-starter 2.0.0 => 2.0.1

This commit is contained in:
2024-05-13 23:37:10 +08:00
parent d320c9596a
commit fac7c866ee
8 changed files with 35 additions and 46 deletions

View File

@@ -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));
}
}