Merge pull request #11666 from dataease/pr@dev-v2@fix_ds
fix(数据集): 修复数据集字段类型
This commit is contained in:
commit
793ab19045
@ -124,7 +124,7 @@ public class CustomWhere2Str {
|
|||||||
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
||||||
}
|
}
|
||||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
||||||
whereName = originName;
|
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
|
||||||
}
|
}
|
||||||
if (field.getDeExtractType() == 3) {
|
if (field.getDeExtractType() == 3) {
|
||||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||||
|
|||||||
@ -96,7 +96,7 @@ public class ExtWhere2Str {
|
|||||||
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
||||||
}
|
}
|
||||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
||||||
whereName = originName;
|
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
|
||||||
}
|
}
|
||||||
if (field.getDeExtractType() == 3) {
|
if (field.getDeExtractType() == 3) {
|
||||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||||
|
|||||||
@ -126,7 +126,7 @@ public class WhereTree2Str {
|
|||||||
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
whereName = String.format(SQLConstants.UNIX_TIMESTAMP, originName);
|
||||||
}
|
}
|
||||||
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 4) {
|
||||||
whereName = originName;
|
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
|
||||||
}
|
}
|
||||||
if (field.getDeExtractType() == 3) {
|
if (field.getDeExtractType() == 3) {
|
||||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user