Merge pull request #5020 from dataease/pr@dev@fixextratdata

fix: oracle时间过滤组件提示异常
This commit is contained in:
taojinlong 2023-04-13 12:44:06 +08:00 committed by GitHub
commit 83aa38b909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1215,7 +1215,8 @@ public class OracleQueryProvider extends QueryProvider {
whereName = String.format(OracleConstants.FROM_UNIXTIME, cast, format); whereName = String.format(OracleConstants.FROM_UNIXTIME, cast, format);
} }
if (field.getDeExtractType() == 1) { if (field.getDeExtractType() == 1) {
whereName = String.format(OracleConstants.TO_CHAR, format); whereName = originName;
// whereName = String.format(OracleConstants.TO_CHAR, originName, format);
} }
} else if (field.getDeType() == 2 || field.getDeType() == 3) { } else if (field.getDeType() == 2 || field.getDeType() == 3) {
if (field.getDeExtractType() == 0 || field.getDeExtractType() == 5) { if (field.getDeExtractType() == 0 || field.getDeExtractType() == 5) {