新增参数配置 gen.forceLowerCase 表名字段名是否强制小写
This commit is contained in:
@@ -280,6 +280,9 @@ job:
|
|||||||
gen:
|
gen:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
# 表名字段名是否强制小写
|
||||||
|
forceLowerCase: true
|
||||||
|
|
||||||
# 系统监控
|
# 系统监控
|
||||||
state:
|
state:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ public class ${ClassName} extends ${table.isTreeEntity?'Tree':'Data'}Entity<${Cl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 如果不是基类属性
|
// 如果不是基类属性
|
||||||
else if(c.columnName != 'id' && !c.isSuperColumn){
|
else if(!@StringUtils.equalsIgnoreCase(c.columnName, 'id') && !c.isSuperColumn){
|
||||||
// 父类对象
|
// 父类对象
|
||||||
if(table.parentExists && table.parentTableFkName == c.columnName){
|
if(table.parentExists && table.parentTableFkName == c.columnName){
|
||||||
%>
|
%>
|
||||||
@@ -268,7 +268,7 @@ public class ${ClassName} extends ${table.isTreeEntity?'Tree':'Data'}Entity<${Cl
|
|||||||
<%
|
<%
|
||||||
}
|
}
|
||||||
// 如果不是基类属性
|
// 如果不是基类属性
|
||||||
}else if(c.columnName != 'id' && !c.isSuperColumn){
|
}else if(!@StringUtils.equalsIgnoreCase(c.columnName, 'id') && !c.isSuperColumn){
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
for (c in table.columnList){
|
for (c in table.columnList){
|
||||||
if (c.isEdit == '1'){
|
if (c.isEdit == '1'){
|
||||||
// 如果是树结构的字段,则自动忽略
|
// 如果是树结构的字段,则自动忽略
|
||||||
if(table.isTreeEntity && @StringUtils.inString(c.columnName, 'parent_code',
|
if(table.isTreeEntity && @StringUtils.inStringIgnoreCase(c.columnName, 'parent_code',
|
||||||
'parent_codes', 'tree_sorts', 'tree_leaf', 'tree_level', 'tree_names')){
|
'parent_codes', 'tree_sorts', 'tree_leaf', 'tree_level', 'tree_names')){
|
||||||
}
|
}
|
||||||
// 如果是隐藏域
|
// 如果是隐藏域
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
isNewLine = true;
|
isNewLine = true;
|
||||||
}
|
}
|
||||||
// 如果是扩展字段,则输出子标题,并且强制换行
|
// 如果是扩展字段,则输出子标题,并且强制换行
|
||||||
if (c.columnName == 'extend_s1'){
|
if (@StringUtils.equalsIgnoreCase(c.columnName, 'extend_s1')){
|
||||||
isNewLine = true;
|
isNewLine = true;
|
||||||
}
|
}
|
||||||
// 如果是第一个控件
|
// 如果是第一个控件
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
<%
|
<%
|
||||||
}
|
}
|
||||||
// 如果是扩展字段,则输出子标题,并且强制换行
|
// 如果是扩展字段,则输出子标题,并且强制换行
|
||||||
if (c.columnName == 'extend_s1'){
|
if (@StringUtils.equalsIgnoreCase(c.columnName, 'extend_s1')){
|
||||||
%>
|
%>
|
||||||
<div class="form-unit">\${text('扩展字段')}</div>
|
<div class="form-unit">\${text('扩展字段')}</div>
|
||||||
<%
|
<%
|
||||||
|
|||||||
Reference in New Issue
Block a user