Pre Merge pull request !404 from SG/master
This commit is contained in:
commit
4e1e9c87f4
@ -106,6 +106,9 @@ public class GenConstants
|
|||||||
/** 时间类型 */
|
/** 时间类型 */
|
||||||
public static final String TYPE_DATE = "Date";
|
public static final String TYPE_DATE = "Date";
|
||||||
|
|
||||||
|
/** 布尔类型 */
|
||||||
|
public static final String TYPE_BOOLEAN = "Boolean";
|
||||||
|
|
||||||
/** 模糊查询 */
|
/** 模糊查询 */
|
||||||
public static final String QUERY_LIKE = "LIKE";
|
public static final String QUERY_LIKE = "LIKE";
|
||||||
|
|
||||||
|
@ -66,6 +66,11 @@ public class GenUtils
|
|||||||
{
|
{
|
||||||
column.setJavaType(GenConstants.TYPE_BIGDECIMAL);
|
column.setJavaType(GenConstants.TYPE_BIGDECIMAL);
|
||||||
}
|
}
|
||||||
|
// 如果是布尔形
|
||||||
|
else if (str != null && StringUtils.equals("tinyint", dataType) && str.length == 1 && Integer.parseInt(str[0]) == 1)
|
||||||
|
{
|
||||||
|
column.setJavaType(GenConstants.TYPE_BOOLEAN);
|
||||||
|
}
|
||||||
// 如果是整形
|
// 如果是整形
|
||||||
else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10)
|
else if (str != null && str.length == 1 && Integer.parseInt(str[0]) <= 10)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user