From 9db73694c6be563a317772c864f1e804b3fd7835 Mon Sep 17 00:00:00 2001 From: smallchill Date: Sun, 16 Aug 2020 13:46:08 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E7=A7=9F=E6=88=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90id=E5=BA=8F=E5=88=97=E5=8C=96?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/springblade/system/entity/Tenant.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Tenant.java b/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Tenant.java index 4ef7e13d..e37db97d 100644 --- a/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Tenant.java +++ b/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/Tenant.java @@ -18,6 +18,8 @@ package org.springblade.system.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.NullSerializer; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -91,6 +93,7 @@ public class Tenant extends BaseEntity { /** * 数据源ID */ + @JsonSerialize(nullsUsing = NullSerializer.class) @ApiModelProperty(value = "数据源ID") private Long datasourceId; /**