mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 16:31:11 +08:00
fix: 修复字段由日期、数值等转文本后过滤错误的问题
This commit is contained in:
@@ -164,6 +164,12 @@ 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,6 +133,12 @@ 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,6 +174,12 @@ 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