|
|
|
@@ -20,12 +20,17 @@ public class TenantEntity extends BaseEntity { |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="父租户ID",name="parentTenantId") |
|
|
|
protected String parentTenantId; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="父租户ID",name="parentTenantId") |
|
|
|
@TableField(exist = false) |
|
|
|
protected String finalTenantId; |
|
|
|
|
|
|
|
public void updateTenantInfo(TenantEntity info) { |
|
|
|
setTenantId(info.getTenantId()); |
|
|
|
if (StringUtils.isNotBlank(info.getParentTenantId())) { |
|
|
|
setParentTenantId(info.getParentTenantId()); |
|
|
|
} |
|
|
|
setFinalTenantId(getFinalTenantId()); |
|
|
|
} |
|
|
|
|
|
|
|
public void updateTenantInfo(BaseTenantEntity info) { |
|
|
|
@@ -33,6 +38,7 @@ public class TenantEntity extends BaseEntity { |
|
|
|
if (StringUtils.isNotBlank(info.getParentTenantId())) { |
|
|
|
setParentTenantId(info.getParentTenantId()); |
|
|
|
} |
|
|
|
setFinalTenantId(getFinalTenantId()); |
|
|
|
} |
|
|
|
|
|
|
|
public String getFinalTenantId() { |
|
|
|
@@ -58,4 +64,8 @@ public class TenantEntity extends BaseEntity { |
|
|
|
public void setParentTenantId(String parentTenantId) { |
|
|
|
this.parentTenantId = parentTenantId; |
|
|
|
} |
|
|
|
|
|
|
|
public void setFinalTenantId(String finalTenantId) { |
|
|
|
this.finalTenantId = finalTenantId; |
|
|
|
} |
|
|
|
} |