更改生成器初始化列属性字段时判断具体的数字类型的方式

1. 增加了数据库数字类型常量
2. 修改了初始化列属性字段中判断具体的数字类型的方式
This commit is contained in:
耿嘉祺
2022-04-16 15:11:04 +08:00
parent 68a616d7c7
commit 492a218428
2 changed files with 7 additions and 6 deletions

View File

@ -41,8 +41,8 @@ public class GenConstants
public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" };
/** 数据库数字类型 */
public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer",
"bit", "bigint", "float", "double", "decimal" };
public static final String[] COLUMNTYPE_NUMBER = { "bigint", "bit", "tinyint", "smallint", "mediumint", "int", "integer",
"number", "numeric", "float", "double", "decimal" };
/** 页面不需要编辑字段 */
public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" };