yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
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
package com.qianwen.smartman.modules.system.entity;
 
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.qianwen.core.mp.base.BaseEntity;
 
@ApiModel(value = "CustomTemplate对象", description = "自定义字段模板表")
@TableName("blade_custom_template")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/CustomTemplate.class */
public class CustomTemplate extends BaseEntity {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("所属租户")
    private String tenantId;
    @ApiModelProperty("计划类型名称")
    private String templateName;
    @ApiModelProperty("业务类型 1:计划工单,2:产品")
    private Integer businessType;
    @ApiModelProperty("是否默认 1默认")
    private Integer defaultTemplate;
 
    public CustomTemplate setTenantId(final String tenantId) {
        this.tenantId = tenantId;
        return this;
    }
 
    public CustomTemplate setTemplateName(final String templateName) {
        this.templateName = templateName;
        return this;
    }
 
    public CustomTemplate setBusinessType(final Integer businessType) {
        this.businessType = businessType;
        return this;
    }
 
    public CustomTemplate setDefaultTemplate(final Integer defaultTemplate) {
        this.defaultTemplate = defaultTemplate;
        return this;
    }
 
    public String toString() {
        return "CustomTemplate(tenantId=" + getTenantId() + ", templateName=" + getTemplateName() + ", businessType=" + getBusinessType() + ", defaultTemplate=" + getDefaultTemplate() + ")";
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof CustomTemplate) {
            CustomTemplate other = (CustomTemplate) o;
            if (other.canEqual(this) && super.equals(o)) {
                Object this$businessType = getBusinessType();
                Object other$businessType = other.getBusinessType();
                if (this$businessType == null) {
                    if (other$businessType != null) {
                        return false;
                    }
                } else if (!this$businessType.equals(other$businessType)) {
                    return false;
                }
                Object this$defaultTemplate = getDefaultTemplate();
                Object other$defaultTemplate = other.getDefaultTemplate();
                if (this$defaultTemplate == null) {
                    if (other$defaultTemplate != null) {
                        return false;
                    }
                } else if (!this$defaultTemplate.equals(other$defaultTemplate)) {
                    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$templateName = getTemplateName();
                Object other$templateName = other.getTemplateName();
                return this$templateName == null ? other$templateName == null : this$templateName.equals(other$templateName);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof CustomTemplate;
    }
 
    public int hashCode() {
        int result = super.hashCode();
        Object $businessType = getBusinessType();
        int result2 = (result * 59) + ($businessType == null ? 43 : $businessType.hashCode());
        Object $defaultTemplate = getDefaultTemplate();
        int result3 = (result2 * 59) + ($defaultTemplate == null ? 43 : $defaultTemplate.hashCode());
        Object $tenantId = getTenantId();
        int result4 = (result3 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
        Object $templateName = getTemplateName();
        return (result4 * 59) + ($templateName == null ? 43 : $templateName.hashCode());
    }
 
    public String getTenantId() {
        return this.tenantId;
    }
 
    public String getTemplateName() {
        return this.templateName;
    }
 
    public Integer getBusinessType() {
        return this.businessType;
    }
 
    public Integer getDefaultTemplate() {
        return this.defaultTemplate;
    }
}