添加获取首字母大写Java字段名的方法,移除GenTableColumn类中的空行,修复controller模板中的格式问题

This commit is contained in:
Dftre 2025-02-23 20:19:07 +08:00
parent ea6de77f33
commit 3de8d85cb1
2 changed files with 5 additions and 2 deletions

View File

@ -86,7 +86,6 @@ public class GenTableColumn extends BaseEntity {
@Deprecated @Deprecated
private String subColumnName; private String subColumnName;
/** 映射字段Java字段名 */ /** 映射字段Java字段名 */
@Deprecated @Deprecated
private String subColumnJavaField; private String subColumnJavaField;
@ -95,6 +94,10 @@ public class GenTableColumn extends BaseEntity {
@Deprecated @Deprecated
private String subColumnJavaType; private String subColumnJavaType;
public String getCapJavaField() {
return StringUtils.capitalize(javaField);
}
public boolean isPk() { public boolean isPk() {
return isPk(this.isPk); return isPk(this.isPk);
} }