package com.qianwen.smartman.modules.system.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.util.Date;
|
import com.qianwen.smartman.common.constant.DateConstant;
|
import com.qianwen.core.mp.base.BaseEntity;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
@ApiModel(value = "Tenant", description = "Tenant对象")
|
@TableName("blade_tenant")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/Tenant.class */
|
public class Tenant extends BaseEntity {
|
private static final long serialVersionUID = 1;
|
@ApiModelProperty("租户ID")
|
private String tenantId;
|
@ApiModelProperty("租户名称")
|
private String tenantName;
|
@ApiModelProperty("域名地址")
|
private String domainName;
|
@ApiModelProperty("系统背景")
|
private String backgroundUrl;
|
@ApiModelProperty("联系人")
|
private String linkman;
|
@ApiModelProperty("联系电话")
|
private String contactNumber;
|
@ApiModelProperty("联系地址")
|
private String address;
|
@ApiModelProperty("账号额度")
|
private Integer accountNumber;
|
@DateTimeFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@ApiModelProperty("过期时间")
|
private Date expireTime;
|
@JsonSerialize(nullsUsing = NullSerializer.class)
|
@ApiModelProperty("数据源ID")
|
private Long datasourceId;
|
@ApiModelProperty("授权码")
|
private String licenseKey;
|
@ApiModelProperty("租户授权码")
|
private String bladeLicense;
|
|
public void setTenantId(final String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
public void setTenantName(final String tenantName) {
|
this.tenantName = tenantName;
|
}
|
|
public void setDomainName(final String domainName) {
|
this.domainName = domainName;
|
}
|
|
public void setBackgroundUrl(final String backgroundUrl) {
|
this.backgroundUrl = backgroundUrl;
|
}
|
|
public void setLinkman(final String linkman) {
|
this.linkman = linkman;
|
}
|
|
public void setContactNumber(final String contactNumber) {
|
this.contactNumber = contactNumber;
|
}
|
|
public void setAddress(final String address) {
|
this.address = address;
|
}
|
|
public void setAccountNumber(final Integer accountNumber) {
|
this.accountNumber = accountNumber;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public void setExpireTime(final Date expireTime) {
|
this.expireTime = expireTime;
|
}
|
|
public void setDatasourceId(final Long datasourceId) {
|
this.datasourceId = datasourceId;
|
}
|
|
public void setLicenseKey(final String licenseKey) {
|
this.licenseKey = licenseKey;
|
}
|
|
public void setBladeLicense(final String bladeLicense) {
|
this.bladeLicense = bladeLicense;
|
}
|
|
public String toString() {
|
return "Tenant(tenantId=" + getTenantId() + ", tenantName=" + getTenantName() + ", domainName=" + getDomainName() + ", backgroundUrl=" + getBackgroundUrl() + ", linkman=" + getLinkman() + ", contactNumber=" + getContactNumber() + ", address=" + getAddress() + ", accountNumber=" + getAccountNumber() + ", expireTime=" + getExpireTime() + ", datasourceId=" + getDatasourceId() + ", licenseKey=" + getLicenseKey() + ", bladeLicense=" + getBladeLicense() + ")";
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof Tenant) {
|
Tenant other = (Tenant) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
Object this$accountNumber = getAccountNumber();
|
Object other$accountNumber = other.getAccountNumber();
|
if (this$accountNumber == null) {
|
if (other$accountNumber != null) {
|
return false;
|
}
|
} else if (!this$accountNumber.equals(other$accountNumber)) {
|
return false;
|
}
|
Object this$datasourceId = getDatasourceId();
|
Object other$datasourceId = other.getDatasourceId();
|
if (this$datasourceId == null) {
|
if (other$datasourceId != null) {
|
return false;
|
}
|
} else if (!this$datasourceId.equals(other$datasourceId)) {
|
return false;
|
}
|
Object this$tenantId = getTenantId();
|
Object other$tenantId = other.getTenantId();
|
if (this$tenantId == null) {
|
if (other$tenantId != null) {
|
return false;
|
}
|
} else if (!this$tenantId.equals(other$tenantId)) {
|
return false;
|
}
|
Object this$tenantName = getTenantName();
|
Object other$tenantName = other.getTenantName();
|
if (this$tenantName == null) {
|
if (other$tenantName != null) {
|
return false;
|
}
|
} else if (!this$tenantName.equals(other$tenantName)) {
|
return false;
|
}
|
Object this$domainName = getDomainName();
|
Object other$domainName = other.getDomainName();
|
if (this$domainName == null) {
|
if (other$domainName != null) {
|
return false;
|
}
|
} else if (!this$domainName.equals(other$domainName)) {
|
return false;
|
}
|
Object this$backgroundUrl = getBackgroundUrl();
|
Object other$backgroundUrl = other.getBackgroundUrl();
|
if (this$backgroundUrl == null) {
|
if (other$backgroundUrl != null) {
|
return false;
|
}
|
} else if (!this$backgroundUrl.equals(other$backgroundUrl)) {
|
return false;
|
}
|
Object this$linkman = getLinkman();
|
Object other$linkman = other.getLinkman();
|
if (this$linkman == null) {
|
if (other$linkman != null) {
|
return false;
|
}
|
} else if (!this$linkman.equals(other$linkman)) {
|
return false;
|
}
|
Object this$contactNumber = getContactNumber();
|
Object other$contactNumber = other.getContactNumber();
|
if (this$contactNumber == null) {
|
if (other$contactNumber != null) {
|
return false;
|
}
|
} else if (!this$contactNumber.equals(other$contactNumber)) {
|
return false;
|
}
|
Object this$address = getAddress();
|
Object other$address = other.getAddress();
|
if (this$address == null) {
|
if (other$address != null) {
|
return false;
|
}
|
} else if (!this$address.equals(other$address)) {
|
return false;
|
}
|
Object this$expireTime = getExpireTime();
|
Object other$expireTime = other.getExpireTime();
|
if (this$expireTime == null) {
|
if (other$expireTime != null) {
|
return false;
|
}
|
} else if (!this$expireTime.equals(other$expireTime)) {
|
return false;
|
}
|
Object this$licenseKey = getLicenseKey();
|
Object other$licenseKey = other.getLicenseKey();
|
if (this$licenseKey == null) {
|
if (other$licenseKey != null) {
|
return false;
|
}
|
} else if (!this$licenseKey.equals(other$licenseKey)) {
|
return false;
|
}
|
Object this$bladeLicense = getBladeLicense();
|
Object other$bladeLicense = other.getBladeLicense();
|
return this$bladeLicense == null ? other$bladeLicense == null : this$bladeLicense.equals(other$bladeLicense);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof Tenant;
|
}
|
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $accountNumber = getAccountNumber();
|
int result2 = (result * 59) + ($accountNumber == null ? 43 : $accountNumber.hashCode());
|
Object $datasourceId = getDatasourceId();
|
int result3 = (result2 * 59) + ($datasourceId == null ? 43 : $datasourceId.hashCode());
|
Object $tenantId = getTenantId();
|
int result4 = (result3 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
|
Object $tenantName = getTenantName();
|
int result5 = (result4 * 59) + ($tenantName == null ? 43 : $tenantName.hashCode());
|
Object $domainName = getDomainName();
|
int result6 = (result5 * 59) + ($domainName == null ? 43 : $domainName.hashCode());
|
Object $backgroundUrl = getBackgroundUrl();
|
int result7 = (result6 * 59) + ($backgroundUrl == null ? 43 : $backgroundUrl.hashCode());
|
Object $linkman = getLinkman();
|
int result8 = (result7 * 59) + ($linkman == null ? 43 : $linkman.hashCode());
|
Object $contactNumber = getContactNumber();
|
int result9 = (result8 * 59) + ($contactNumber == null ? 43 : $contactNumber.hashCode());
|
Object $address = getAddress();
|
int result10 = (result9 * 59) + ($address == null ? 43 : $address.hashCode());
|
Object $expireTime = getExpireTime();
|
int result11 = (result10 * 59) + ($expireTime == null ? 43 : $expireTime.hashCode());
|
Object $licenseKey = getLicenseKey();
|
int result12 = (result11 * 59) + ($licenseKey == null ? 43 : $licenseKey.hashCode());
|
Object $bladeLicense = getBladeLicense();
|
return (result12 * 59) + ($bladeLicense == null ? 43 : $bladeLicense.hashCode());
|
}
|
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public String getTenantName() {
|
return this.tenantName;
|
}
|
|
public String getDomainName() {
|
return this.domainName;
|
}
|
|
public String getBackgroundUrl() {
|
return this.backgroundUrl;
|
}
|
|
public String getLinkman() {
|
return this.linkman;
|
}
|
|
public String getContactNumber() {
|
return this.contactNumber;
|
}
|
|
public String getAddress() {
|
return this.address;
|
}
|
|
public Integer getAccountNumber() {
|
return this.accountNumber;
|
}
|
|
public Date getExpireTime() {
|
return this.expireTime;
|
}
|
|
public Long getDatasourceId() {
|
return this.datasourceId;
|
}
|
|
public String getLicenseKey() {
|
return this.licenseKey;
|
}
|
|
public String getBladeLicense() {
|
return this.bladeLicense;
|
}
|
}
|