diff --git a/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartCustomFilterItemDTO.java b/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartCustomFilterItemDTO.java index 27a6e049aa..cdf0fbeeb3 100644 --- a/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartCustomFilterItemDTO.java +++ b/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartCustomFilterItemDTO.java @@ -1,5 +1,7 @@ package io.dataease.api.chart.dto; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; import java.io.Serializable; @@ -9,6 +11,7 @@ import java.io.Serializable; */ @Data public class ChartCustomFilterItemDTO implements Serializable { + @JsonSerialize(using = ToStringSerializer.class) private Long fieldId; private String term; private String value; diff --git a/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartQuotaDTO.java b/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartQuotaDTO.java index ea3cd12391..fafe973ef9 100644 --- a/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartQuotaDTO.java +++ b/sdk/api/api-base/src/main/java/io/dataease/api/chart/dto/ChartQuotaDTO.java @@ -1,5 +1,7 @@ package io.dataease.api.chart.dto; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; /** @@ -7,5 +9,6 @@ import lombok.Data; */ @Data public class ChartQuotaDTO { + @JsonSerialize(using = ToStringSerializer.class) private Long id; }