|
|
|
@@ -2,6 +2,7 @@ package com.iformall.domain.po.base; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import lombok.EqualsAndHashCode; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
@@ -82,6 +83,11 @@ public class TenantEntity extends BaseEntity { |
|
|
|
this.finalTenantId = finalTenantId; |
|
|
|
} |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY) |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "", name = "tenantInfo") |
|
|
|
private TenantEntity tenantInfo; |
|
|
|
|
|
|
|
public TenantEntity getTenantInfo() { |
|
|
|
if (StringUtils.isBlank(getParentTenantId())) { |
|
|
|
TenantEntity single = new TenantEntity(); |
|
|
|
|