mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-05 15:57:32 +00:00
修复后端生成类型 Integer 出错的问题
This commit is contained in:
@@ -412,7 +412,6 @@ 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,7 +363,6 @@ 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