mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-07 08:47:32 +00:00
更新获取Java类型后端生成類型 Integer出錯的問
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user