Merge pull request #7337 from dataease/pr@dev-v2@fix_date

fix: 修复过滤组件过滤时间戳不显示的问题 #7313
This commit is contained in:
Junjun 2023-12-25 17:42:09 +08:00 committed by GitHub
commit b42d2547a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ public class ExtWhere2Str {
whereName = String.format(SQLConstants.DE_CAST_DATE_FORMAT, originName, StringUtils.isEmpty(field.getDateFormat()) ? SQLConstants.DEFAULT_DATE_FORMAT : field.getDateFormat(), date_format);
}
if (field.getDeExtractType() == 2 || field.getDeExtractType() == 3 || field.getDeExtractType() == 4) {
String cast = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
whereName = String.format(SQLConstants.CAST, originName, SQLConstants.DEFAULT_INT_FORMAT);
}
if (field.getDeExtractType() == 1) {
// 此处获取标准格式的日期