解决代码生成没有bit类型,跟没有下划线不会自动转小写的问题

This commit is contained in:
zhangjianning 2020-10-12 10:17:00 +08:00
parent 406889ae07
commit 72fb768e94
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -372,11 +372,11 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
{
return null;
}
s = s.toLowerCase();
if (s.indexOf(SEPARATOR) == -1)
{
return s;
}
s = s.toLowerCase();
StringBuilder sb = new StringBuilder(s.length());
boolean upperCase = false;
for (int i = 0; i < s.length(); i++)