|
@@ -1,4 +1,4 @@
|
|
|
-package com.ruoyi.common.core.constant;
|
|
|
+package com.ruoyi.generator.constant;
|
|
|
|
|
|
/**
|
|
|
* 代码生成通用常量
|
|
@@ -44,52 +44,55 @@ public interface GenConstants {
|
|
|
/**
|
|
|
* 数据库字符串类型
|
|
|
*/
|
|
|
- String[] COLUMNTYPE_STR = {"char", "varchar", "nvarchar", "varchar2"};
|
|
|
+ String[] COLUMNTYPE_STR = {"char", "varchar", "enum", "set", "nchar", "nvarchar", "varchar2", "nvarchar2"};
|
|
|
|
|
|
/**
|
|
|
* 数据库文本类型
|
|
|
*/
|
|
|
- String[] COLUMNTYPE_TEXT = {"tinytext", "text", "mediumtext", "longtext"};
|
|
|
+ String[] COLUMNTYPE_TEXT = {"tinytext", "text", "mediumtext", "longtext", "binary", "varbinary", "blob",
|
|
|
+ "ntext", "image", "bytea"};
|
|
|
|
|
|
/**
|
|
|
* 数据库时间类型
|
|
|
*/
|
|
|
- String[] COLUMNTYPE_TIME = {"datetime", "time", "date", "timestamp"};
|
|
|
+ String[] COLUMNTYPE_TIME = {"datetime", "time", "date", "timestamp", "year", "interval",
|
|
|
+ "smalldatetime", "datetime2", "datetimeoffset"};
|
|
|
|
|
|
/**
|
|
|
* 数据库数字类型
|
|
|
*/
|
|
|
String[] COLUMNTYPE_NUMBER = {"tinyint", "smallint", "mediumint", "int", "number", "integer",
|
|
|
- "bit", "bigint", "float", "double", "decimal"};
|
|
|
+ "bit", "bigint", "float", "double", "decimal", "numeric", "real", "double precision",
|
|
|
+ "smallserial", "serial", "bigserial", "money", "smallmoney"};
|
|
|
|
|
|
/**
|
|
|
* BO对象 不需要添加字段
|
|
|
*/
|
|
|
- String[] COLUMNNAME_NOT_ADD = {"create_by", "create_time", "del_flag", "update_by",
|
|
|
+ String[] COLUMNNAME_NOT_ADD = {"create_dept", "create_by", "create_time", "del_flag", "update_by",
|
|
|
"update_time", "version"};
|
|
|
|
|
|
/**
|
|
|
* BO对象 不需要编辑字段
|
|
|
*/
|
|
|
- String[] COLUMNNAME_NOT_EDIT = {"create_by", "create_time", "del_flag", "update_by",
|
|
|
+ String[] COLUMNNAME_NOT_EDIT = {"create_dept", "create_by", "create_time", "del_flag", "update_by",
|
|
|
"update_time", "version"};
|
|
|
|
|
|
/**
|
|
|
* VO对象 不需要返回字段
|
|
|
*/
|
|
|
- String[] COLUMNNAME_NOT_LIST = {"create_by", "create_time", "del_flag", "update_by",
|
|
|
+ String[] COLUMNNAME_NOT_LIST = {"create_dept", "create_by", "create_time", "del_flag", "update_by",
|
|
|
"update_time", "version"};
|
|
|
|
|
|
/**
|
|
|
* BO对象 不需要查询字段
|
|
|
*/
|
|
|
- String[] COLUMNNAME_NOT_QUERY = {"id", "create_by", "create_time", "del_flag", "update_by",
|
|
|
+ String[] COLUMNNAME_NOT_QUERY = {"id", "create_dept", "create_by", "create_time", "del_flag", "update_by",
|
|
|
"update_time", "remark", "version"};
|
|
|
|
|
|
/**
|
|
|
* Entity基类字段
|
|
|
*/
|
|
|
- String[] BASE_ENTITY = {"createBy", "createTime", "updateBy", "updateTime"};
|
|
|
+ String[] BASE_ENTITY = {"createDept", "createBy", "createTime", "updateBy", "updateTime"};
|
|
|
|
|
|
/**
|
|
|
* Tree基类字段
|