生成的domain,如果是浮点型,统一使用BigDecimal

This commit is contained in:
Live
2020-06-08 15:15:57 +08:00
committed by Gitee
parent 7afc5acc6f
commit 9d90ee7907

View File

@ -67,7 +67,7 @@ public class GenUtils
// 如果是整形 // 如果是整形
else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10) else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10)
{ {
column.setJavaType(GenConstants.TYPE_INTEGER); column.setJavaType(GenConstants.TYPE_BIGDECIMAL);
} }
// 长整形 // 长整形
else else