Explorar el Código

//update tenant

release_toaliyun_real
xhxu hace 4 años
padre
commit
72afcd80ce
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar