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
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
package com.qianwen.smartman.modules.cps.entity;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qianwen.smartman.common.constant.CommonConstant;
import com.qianwen.core.mp.base.BaseEntity;
 
@TableName("blade_workstation_workbench")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/WorkstationWorkbench.class */
public class WorkstationWorkbench extends BaseEntity {
    private static final long serialVersionUID = -883848031177958103L;
    @TableField("workstation_id")
    private Long workstationId;
    @TableField(CommonConstant.SORT_FIELD)
    private Integer sort;
    @TableField("name")
    private String name;
    @TableField("workbench_default")
    private Integer workbenchDefault;
 
    public void setWorkstationId(final Long workstationId) {
        this.workstationId = workstationId;
    }
 
    public void setSort(final Integer sort) {
        this.sort = sort;
    }
 
    public void setName(final String name) {
        this.name = name;
    }
 
    public void setWorkbenchDefault(final Integer workbenchDefault) {
        this.workbenchDefault = workbenchDefault;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof WorkstationWorkbench) {
            WorkstationWorkbench other = (WorkstationWorkbench) o;
            if (other.canEqual(this)) {
                Object this$workstationId = getWorkstationId();
                Object other$workstationId = other.getWorkstationId();
                if (this$workstationId == null) {
                    if (other$workstationId != null) {
                        return false;
                    }
                } else if (!this$workstationId.equals(other$workstationId)) {
                    return false;
                }
                Object this$sort = getSort();
                Object other$sort = other.getSort();
                if (this$sort == null) {
                    if (other$sort != null) {
                        return false;
                    }
                } else if (!this$sort.equals(other$sort)) {
                    return false;
                }
                Object this$workbenchDefault = getWorkbenchDefault();
                Object other$workbenchDefault = other.getWorkbenchDefault();
                if (this$workbenchDefault == null) {
                    if (other$workbenchDefault != null) {
                        return false;
                    }
                } else if (!this$workbenchDefault.equals(other$workbenchDefault)) {
                    return false;
                }
                Object this$name = getName();
                Object other$name = other.getName();
                return this$name == null ? other$name == null : this$name.equals(other$name);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof WorkstationWorkbench;
    }
 
    public int hashCode() {
        Object $workstationId = getWorkstationId();
        int result = (1 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
        Object $sort = getSort();
        int result2 = (result * 59) + ($sort == null ? 43 : $sort.hashCode());
        Object $workbenchDefault = getWorkbenchDefault();
        int result3 = (result2 * 59) + ($workbenchDefault == null ? 43 : $workbenchDefault.hashCode());
        Object $name = getName();
        return (result3 * 59) + ($name == null ? 43 : $name.hashCode());
    }
 
    public String toString() {
        return "WorkstationWorkbench(workstationId=" + getWorkstationId() + ", sort=" + getSort() + ", name=" + getName() + ", workbenchDefault=" + getWorkbenchDefault() + ")";
    }
 
    /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/WorkstationWorkbench$WorkstationWorkbenchBuilder.class */
    public static class WorkstationWorkbenchBuilder {
        private Long workstationId;
        private Integer sort;
        private String name;
        private Integer workbenchDefault;
 
        WorkstationWorkbenchBuilder() {
        }
 
        public WorkstationWorkbenchBuilder workstationId(final Long workstationId) {
            this.workstationId = workstationId;
            return this;
        }
 
        public WorkstationWorkbenchBuilder sort(final Integer sort) {
            this.sort = sort;
            return this;
        }
 
        public WorkstationWorkbenchBuilder name(final String name) {
            this.name = name;
            return this;
        }
 
        public WorkstationWorkbenchBuilder workbenchDefault(final Integer workbenchDefault) {
            this.workbenchDefault = workbenchDefault;
            return this;
        }
 
        public WorkstationWorkbench build() {
            return new WorkstationWorkbench(this.workstationId, this.sort, this.name, this.workbenchDefault);
        }
 
        public String toString() {
            return "WorkstationWorkbench.WorkstationWorkbenchBuilder(workstationId=" + this.workstationId + ", sort=" + this.sort + ", name=" + this.name + ", workbenchDefault=" + this.workbenchDefault + ")";
        }
    }
 
    public static WorkstationWorkbenchBuilder builder() {
        return new WorkstationWorkbenchBuilder();
    }
 
    public WorkstationWorkbench(final Long workstationId, final Integer sort, final String name, final Integer workbenchDefault) {
        this.workstationId = workstationId;
        this.sort = sort;
        this.name = name;
        this.workbenchDefault = workbenchDefault;
    }
 
    public WorkstationWorkbench() {
    }
 
    public Long getWorkstationId() {
        return this.workstationId;
    }
 
    public Integer getSort() {
        return this.sort;
    }
 
    public String getName() {
        return this.name;
    }
 
    public Integer getWorkbenchDefault() {
        return this.workbenchDefault;
    }
}