mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-04-14 20:33:40 +00:00
更新获取Java类型后端生成類型 Integer出錯的問
This commit is contained in:
@@ -412,6 +412,7 @@ 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,6 +363,7 @@ 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