mirror of
https://github.com/dataease/dataease.git
synced 2026-05-17 15:00:59 +08:00
fix(数据集): 修复数据集字段类型
This commit is contained in:
@@ -124,7 +124,7 @@ public class CustomWhere2Str {
|
||||
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
||||
}
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
||||
whereName = originName;
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
|
||||
}
|
||||
if (field.getDeExtractType() == 3) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ExtWhere2Str {
|
||||
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
||||
}
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
||||
whereName = originName;
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
|
||||
}
|
||||
if (field.getDeExtractType() == 3) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||
|
||||
@@ -126,7 +126,7 @@ public class WhereTree2Str {
|
||||
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
||||
}
|
||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
||||
whereName = originName;
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
|
||||
}
|
||||
if (field.getDeExtractType() == 3) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||
|
||||
Reference in New Issue
Block a user