修改模板生成器

This commit is contained in:
TinyAnts 2022-08-15 17:17:20 +08:00
parent f5118208dd
commit 5e684a698b
1 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,11 @@ public class GenUtil {
}
}
// 非必填字段
if (GenUtil.isArraysContains(SqlConstants.COLUMN_NAME_NOT_EDIT, columnName)) {
column.setIsRequired(0);
}
// 需插入字段
if (!GenUtil.isArraysContains(SqlConstants.COLUMN_NAME_NOT_ADD, columnName)) {
column.setIsInsert(GenConstants.REQUIRE);