[feat] 调整代码生成
This commit is contained in:
parent
1cf452b498
commit
c90b34e88c
@ -45,11 +45,10 @@ public class GenConstants
|
||||
"bit", "bigint", "float", "double", "decimal" };
|
||||
|
||||
/** 页面不需要编辑字段 */
|
||||
public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" };
|
||||
public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_user_id","update_user_id","update_time", "create_time", "del_flag" };
|
||||
|
||||
/** 页面不需要显示的列表字段 */
|
||||
public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by",
|
||||
"update_time" };
|
||||
public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "del_flag", "update_by"};
|
||||
|
||||
/** 页面不需要查询字段 */
|
||||
public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by",
|
||||
|
@ -67,7 +67,7 @@ public class GenUtils
|
||||
column.setJavaType(GenConstants.TYPE_BIGDECIMAL);
|
||||
}
|
||||
// 如果是整形
|
||||
else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10)
|
||||
else if ((str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10) || "int".equals(column.getColumnType()))
|
||||
{
|
||||
column.setJavaType(GenConstants.TYPE_INTEGER);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user