mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
fix: 修复year字段类型不展示的问题
This commit is contained in:
parent
965e075a58
commit
f1ad521d9a
@ -91,7 +91,7 @@ public class Dimension2SQLObj {
|
||||
if (Objects.equals(x.getDeExtractType(), DeTypeConstants.DE_TIME)) {
|
||||
if (Objects.equals(x.getDeType(), DeTypeConstants.DE_INT) || Objects.equals(x.getDeType(), DeTypeConstants.DE_FLOAT)) {
|
||||
fieldName = String.format(SQLConstants.UNIX_TIMESTAMP, originField);
|
||||
} else if (Objects.equals(x.getDeType(), DeTypeConstants.DE_TIME)) {
|
||||
} else if (Objects.equals(x.getDeType(), DeTypeConstants.DE_TIME) && !StringUtils.equalsIgnoreCase(x.getType(), "year")) {
|
||||
// 如果都是时间类型,把date和time类型进行字符串拼接
|
||||
if (isCross) {
|
||||
if (StringUtils.equalsIgnoreCase(x.getType(), "date")) {
|
||||
|
Loading…
Reference in New Issue
Block a user