From 11d4c72c8eb4cf4f4128e82a7be61a7ba7e3f249 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 2 Sep 2024 17:10:44 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E6=8A=A5=E8=A1=A8ent?= =?UTF-8?q?ity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/core/report/entity/ReportFileEntity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blade-starter-report/src/main/java/org/springblade/core/report/entity/ReportFileEntity.java b/blade-starter-report/src/main/java/org/springblade/core/report/entity/ReportFileEntity.java index ea8248d..bd2bf62 100644 --- a/blade-starter-report/src/main/java/org/springblade/core/report/entity/ReportFileEntity.java +++ b/blade-starter-report/src/main/java/org/springblade/core/report/entity/ReportFileEntity.java @@ -19,6 +19,8 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import lombok.Data; import java.io.Serial; @@ -41,6 +43,7 @@ public class ReportFileEntity implements Serializable { * 主键 */ @TableId(value = "id", type = IdType.ASSIGN_ID) + @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 文件名