forked from github/dataease
fix:【数据源】-本地Excel文件创建的数据源数据预览为空
This commit is contained in:
parent
6a6bca4d68
commit
237c3c37bc
@ -297,11 +297,6 @@ public class ExcelUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String cellType(String value) {
|
private String cellType(String value) {
|
||||||
try {
|
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
||||||
sdf.parse(value);
|
|
||||||
return "DATETIME";
|
|
||||||
} catch (Exception e1) {
|
|
||||||
if(value.length()> 19){
|
if(value.length()> 19){
|
||||||
return "TEXT";
|
return "TEXT";
|
||||||
}
|
}
|
||||||
@ -317,7 +312,6 @@ public class ExcelUtils {
|
|||||||
return "TEXT";
|
return "TEXT";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void cellType(String value, int i, TableField tableFiled) {
|
private void cellType(String value, int i, TableField tableFiled) {
|
||||||
if (StringUtils.isEmpty(value)) {
|
if (StringUtils.isEmpty(value)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user