mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-16 13:23:42 +00:00
修复后端生成类型 Integer 出错的问题
This commit is contained in:
@@ -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")) {
|
||||||
|
|||||||
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user