更新获取Java类型后端生成類型 Integer出錯的問

This commit is contained in:
fy53888
2025-08-09 22:01:29 +08:00
parent 9f4a2256b4
commit 22c0c733f6
2 changed files with 2 additions and 0 deletions

View File

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

View File

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