代码生成如果是PK则必须生成到表单

This commit is contained in:
thinkgem
2021-10-20 10:21:07 +08:00
parent ce50c1b0c4
commit 8e9f183ec1

View File

@@ -1,7 +1,7 @@
<%
var rowFlag = -1, preGridRowCol;
for (c in table.columnList){
if (c.isEdit == '1'){
if (c.isEdit == '1' || c.isPk == '1'){
// 如果是树结构的字段,则自动忽略
if(table.isTreeEntity && @StringUtils.inStringIgnoreCase(c.columnName, 'parent_code',
'parent_codes', 'tree_sorts', 'tree_leaf', 'tree_level', 'tree_names')){