admin
2024-07-25 47e3087067abd35e6337c011f96d2338c0bb1aae
src/main/java/org/yeshi/utils/generater/mybatis/ColumnParseUtil.java
@@ -87,4 +87,25 @@
        }
    }
    public static String getMysqlType(String type) {
        if (type.endsWith("java.lang.Long")) {
            return "bigint";
        } else if (type.endsWith("java.lang.Integer")) {
            return "int";
        } else if (type.endsWith("java.lang.String")) {
            return "varchar";
        } else if (type.endsWith("java.lang.Boolean")) {
            return "tinyint";
        } else if (type.endsWith("java.math.BigDecimal")) {
            return "decimal";
        } else if (type.endsWith("java.util.Date")) {
            return "datetime";
        } else if (type.endsWith("java.lang.Double")) {
            return "double";
        } else {
            return "varchar";
        }
    }
}