修复后端生成类型 Integer 出错的问题

This commit is contained in:
fy53888
2025-08-09 22:03:31 +08:00
parent 22c0c733f6
commit 579beb6833
2 changed files with 0 additions and 2 deletions

View File

@@ -412,7 +412,6 @@ public class GenTableServiceImpl implements IGenTableService {
return "String"; return "String";
} }
String type = dbType.toLowerCase(); String type = dbType.toLowerCase();
if (Objects.equals(type,"int") || type.contains("tinyint") || type.contains("smallint")) { if (Objects.equals(type,"int") || type.contains("tinyint") || type.contains("smallint")) {
return "Integer"; return "Integer";
} else if (type.contains("bigint")) { } else if (type.contains("bigint")) {

View File

@@ -363,7 +363,6 @@ public class SchemaFieldServiceImpl implements SchemaFieldService {
} }
String type = dbType.toLowerCase(); String type = dbType.toLowerCase();
if (Objects.equals(type,"int")|| type.contains("tinyint") || type.contains("smallint")) { if (Objects.equals(type,"int")|| type.contains("tinyint") || type.contains("smallint")) {
return "Integer"; return "Integer";
} else if (type.contains("bigint")) { } else if (type.contains("bigint")) {