mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-09-23 00:47:24 +08:00
修改模板生成器
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user