From 9d62eafb2fd7c71d48b559987049fab117130a21 Mon Sep 17 00:00:00 2001 From: lishangbu Date: Sat, 16 May 2020 07:42:37 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20Refactoring=20code.=E4=BC=98?= =?UTF-8?q?=E5=8C=96id=E8=B6=B3=E5=A4=9F=E9=95=BF=E6=97=B6=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=89=8D=E7=AB=AF=E5=8F=AF=E8=83=BD=E4=BC=9A=E9=80=A0?= =?UTF-8?q?=E6=88=90=E7=B2=BE=E5=BA=A6=E4=B8=A2=E5=A4=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/pig4cloud/pig/admin/api/entity/SysLog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/entity/SysLog.java b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/entity/SysLog.java index 3ac4815d..cf6d20b1 100644 --- a/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/entity/SysLog.java +++ b/pig-upms/pig-upms-api/src/main/java/com/pig4cloud/pig/admin/api/entity/SysLog.java @@ -21,6 +21,8 @@ package com.pig4cloud.pig.admin.api.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -46,6 +48,7 @@ public class SysLog implements Serializable { */ @TableId(value = "id", type = IdType.AUTO) @ApiModelProperty(value = "日志编号") + @JsonSerialize(using = ToStringSerializer.class) private Long id; /** * 日志类型