|
|
|
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.EqualsAndHashCode; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
/** |
|
|
|
@@ -11,6 +13,7 @@ import org.apache.commons.lang3.StringUtils; |
|
|
|
* @date 2019/4/24 14:32 |
|
|
|
*/ |
|
|
|
@Data |
|
|
|
@Slf4j |
|
|
|
@EqualsAndHashCode(callSuper = true) |
|
|
|
public class BaseTenantEntity extends BaseEntity { |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId") |
|
|
|
@@ -25,7 +28,7 @@ public class BaseTenantEntity extends BaseEntity { |
|
|
|
private TenantEntity tenantInfo; |
|
|
|
|
|
|
|
public void updateTenantInfo(TenantEntity info) { |
|
|
|
System.out.println("info.tenantId:"+info.getTenantId()+". info.parentTenantId:"+info.getParentTenantId()+"."); |
|
|
|
log.info("info.tenantId:"+info.getTenantId()+". info.parentTenantId:"+info.getParentTenantId()+"."); |
|
|
|
setTenantId(info.getTenantId()); |
|
|
|
if (StringUtils.isNotBlank(info.getParentTenantId())) { |
|
|
|
setParentTenantId(info.getParentTenantId()); |
|
|
|
|