修复[issue:2339](https://github.com/dataease/dataease/issues/2339)excel创建关联数据集保留原数据类型

This commit is contained in:
吕昊泽 2022-05-29 21:38:20 +08:00
parent 700a19b86a
commit 00e7b5f349
3 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class MysqlQueryProvider extends QueryProvider {
case "MEDIUMINT":
case "INTEGER":
case "BIGINT":
case "LONG":
return 2;// 整型
case "FLOAT":
case "DOUBLE":

View File

@ -63,6 +63,7 @@ public class MysqlQueryProvider extends QueryProvider {
case "MEDIUMINT":
case "INTEGER":
case "BIGINT":
case "LONG":
return 2;// 整型
case "FLOAT":
case "DOUBLE":

View File

@ -1614,6 +1614,7 @@ public class DataSetTableService {
TableUtils.fieldName(field.getTableId() + "_" + field.getDataeaseName()),
tableField.getFieldName())) {
tableField.setRemarks(field.getName());
tableField.setFieldType(field.getType());
break;
}
}