fix: id序列化

This commit is contained in:
junjun 2023-11-27 18:42:31 +08:00
parent a3af0caa47
commit bbc95c6d8c
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;
}