refactor: optimize JdbcTypeMapping.java

This commit is contained in:
Michael Yang 2024-05-14 09:43:43 +08:00
parent 52c50803c9
commit 26a887e66f

View File

@ -70,7 +70,7 @@ public class JdbcTypeMapping {
registerMapping("java.time.LocalDate", "java.util.Date"); registerMapping("java.time.LocalDate", "java.util.Date");
} }
static String getType(String jdbcType, Table table, Column column) { public static String getType(String jdbcType, Table table, Column column) {
if (typeMapper != null) { if (typeMapper != null) {
String type = typeMapper.getType(jdbcType, table, column); String type = typeMapper.getType(jdbcType, table, column);
if (StringUtil.isNotBlank(type)) { if (StringUtil.isNotBlank(type)) {