修改模板生成器
This commit is contained in:
parent
f5118208dd
commit
5e684a698b
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue