From bbc95c6d8ccfae6ff033af6f9b4f2f20d3eb9f33 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 27 Nov 2023 18:42:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20id=E5=BA=8F=E5=88=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/api/chart/dto/ChartCustomFilterItemDTO.java | 3 +++ .../src/main/java/io/dataease/api/chart/dto/ChartQuotaDTO.java | 3 +++ 2 files changed, 6 insertions(+) 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; }