mirror of
https://github.com/dataease/dataease.git
synced 2026-06-11 15:27:02 +08:00
revert: 修复字段由日期、数值等转文本后过滤错误的问题
This commit is contained in:
@@ -164,12 +164,6 @@ public class CustomWhere2Str {
|
||||
if (field.getDeExtractType() == 3) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||
}
|
||||
} else if (field.getDeType() == 0) {
|
||||
if (field.getDeExtractType() != 0) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.VARCHAR);
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
|
||||
@@ -133,12 +133,6 @@ public class ExtWhere2Str {
|
||||
if (field.getDeExtractType() == 3) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||
}
|
||||
} else if (field.getDeType() == 0) {
|
||||
if (field.getDeExtractType() != 0) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.VARCHAR);
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
|
||||
@@ -174,12 +174,6 @@ public class WhereTree2Str {
|
||||
if (field.getDeExtractType() == 3) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_FLOAT_FORMAT);
|
||||
}
|
||||
} else if (field.getDeType() == 0) {
|
||||
if (field.getDeExtractType() != 0) {
|
||||
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.VARCHAR);
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
} else {
|
||||
whereName = originName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user