|
|
|
|
@ -61,7 +61,7 @@ public class GenUtils
|
|
|
|
|
column.setHtmlType(GenConstants.HTML_INPUT);
|
|
|
|
|
|
|
|
|
|
// 如果是浮点型 统一用BigDecimal
|
|
|
|
|
String[] str = StrUtil.split(StrUtil.subBetween(column.getColumnType(), "(", ")"), ",");
|
|
|
|
|
String[] str = StrUtil.splitToArray(StrUtil.subBetween(column.getColumnType(), "(", ")"), ",");
|
|
|
|
|
if (str != null && str.length == 2 && Integer.parseInt(str[1]) > 0)
|
|
|
|
|
{
|
|
|
|
|
column.setJavaType(GenConstants.TYPE_BIGDECIMAL);
|
|
|
|
|
@ -182,7 +182,7 @@ public class GenUtils
|
|
|
|
|
String tablePrefix = GenConfig.getTablePrefix();
|
|
|
|
|
if (autoRemovePre && StrUtil.isNotEmpty(tablePrefix))
|
|
|
|
|
{
|
|
|
|
|
String[] searchList = StrUtil.split(tablePrefix, ",");
|
|
|
|
|
String[] searchList = StrUtil.splitToArray(tablePrefix, ",");
|
|
|
|
|
tableName = replaceFirst(tableName, searchList);
|
|
|
|
|
}
|
|
|
|
|
return StrUtil.upperFirst(StrUtil.toCamelCase(tableName));
|
|
|
|
|
|