yangys
2024-04-02 6bed83e92f67954cd2135071133329f2205efe4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
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;
    }
}