Browse Source

//update tenant

release_toaliyun_real
xhxu 4 years ago
parent
commit
72afcd80ce
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/domain/po/base/TenantEntity.java

+ 6
- 0
mallinkService/src/main/java/com/iformall/domain/po/base/TenantEntity.java View File

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


Loading…
Cancel
Save