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
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
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
package com.qianwen.smartman.modules.coproduction.entity;
 
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import com.qianwen.core.mp.base.BaseEntity;
import com.qianwen.smartman.modules.coproduction.enums.OrderStatusEnum;
 
@ApiModel(value = "Order对象", description = "计划工单")
@TableName("blade_order")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/entity/Order.class */
public class Order extends BaseEntity {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("所属租户")
    private String tenantId;
    @ApiModelProperty("工单号")
    private String orderCode;
    @ApiModelProperty("派发数量")
    private Integer assignNum;
    @ApiModelProperty("报废数量")
    private Integer scrappedNum;
    @ApiModelProperty("合格数量")
    private Integer qualifyNum;
    @ApiModelProperty("工单状态(1:待加工,2:加工中,3:暂停,4:关闭,5:完工)")
    private Integer orderStatus;
    @ApiModelProperty("计划ID")
    private Long planId;
    @ApiModelProperty("变更前工单状态")
    private Integer orderStatusBefore;
    @TableField(value = "start_time", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("开始时间")
    private Date startTime;
    @TableField(value = "end_time", updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("结束时间")
    private Date endTime;
    @ApiModelProperty("描述")
    private String description;
    @TableField(exist = false)
    @ApiModelProperty("工单下工序")
    private List<OrderProcess> orderProcessList;
    @TableField(exist = false)
    @ApiModelProperty("工单删除数量")
    private Integer delOrderNum;
 
    public Order setTenantId(final String tenantId) {
        this.tenantId = tenantId;
        return this;
    }
 
    public Order setOrderCode(final String orderCode) {
        this.orderCode = orderCode;
        return this;
    }
 
    public Order setAssignNum(final Integer assignNum) {
        this.assignNum = assignNum;
        return this;
    }
 
    public Order setScrappedNum(final Integer scrappedNum) {
        this.scrappedNum = scrappedNum;
        return this;
    }
 
    public Order setQualifyNum(final Integer qualifyNum) {
        this.qualifyNum = qualifyNum;
        return this;
    }
 
    public Order setOrderStatus(final Integer orderStatus) {
        this.orderStatus = orderStatus;
        return this;
    }
 
    public Order setPlanId(final Long planId) {
        this.planId = planId;
        return this;
    }
 
    public Order setOrderStatusBefore(final Integer orderStatusBefore) {
        this.orderStatusBefore = orderStatusBefore;
        return this;
    }
 
    public Order setStartTime(final Date startTime) {
        this.startTime = startTime;
        return this;
    }
 
    public Order setEndTime(final Date endTime) {
        this.endTime = endTime;
        return this;
    }
 
    public Order setDescription(final String description) {
        this.description = description;
        return this;
    }
 
    public Order setOrderProcessList(final List<OrderProcess> orderProcessList) {
        this.orderProcessList = orderProcessList;
        return this;
    }
 
    public Order setDelOrderNum(final Integer delOrderNum) {
        this.delOrderNum = delOrderNum;
        return this;
    }
 
    public String toString() {
        return "Order(tenantId=" + getTenantId() + ", orderCode=" + getOrderCode() + ", assignNum=" + getAssignNum() + ", scrappedNum=" + getScrappedNum() + ", qualifyNum=" + getQualifyNum() + ", orderStatus=" + getOrderStatus() + ", planId=" + getPlanId() + ", orderStatusBefore=" + getOrderStatusBefore() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", description=" + getDescription() + ", orderProcessList=" + getOrderProcessList() + ", delOrderNum=" + getDelOrderNum() + ")";
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof Order) {
            Order other = (Order) o;
            if (other.canEqual(this) && super.equals(o)) {
                Object this$assignNum = getAssignNum();
                Object other$assignNum = other.getAssignNum();
                if (this$assignNum == null) {
                    if (other$assignNum != null) {
                        return false;
                    }
                } else if (!this$assignNum.equals(other$assignNum)) {
                    return false;
                }
                Object this$scrappedNum = getScrappedNum();
                Object other$scrappedNum = other.getScrappedNum();
                if (this$scrappedNum == null) {
                    if (other$scrappedNum != null) {
                        return false;
                    }
                } else if (!this$scrappedNum.equals(other$scrappedNum)) {
                    return false;
                }
                Object this$qualifyNum = getQualifyNum();
                Object other$qualifyNum = other.getQualifyNum();
                if (this$qualifyNum == null) {
                    if (other$qualifyNum != null) {
                        return false;
                    }
                } else if (!this$qualifyNum.equals(other$qualifyNum)) {
                    return false;
                }
                Object this$orderStatus = getOrderStatus();
                Object other$orderStatus = other.getOrderStatus();
                if (this$orderStatus == null) {
                    if (other$orderStatus != null) {
                        return false;
                    }
                } else if (!this$orderStatus.equals(other$orderStatus)) {
                    return false;
                }
                Object this$planId = getPlanId();
                Object other$planId = other.getPlanId();
                if (this$planId == null) {
                    if (other$planId != null) {
                        return false;
                    }
                } else if (!this$planId.equals(other$planId)) {
                    return false;
                }
                Object this$orderStatusBefore = getOrderStatusBefore();
                Object other$orderStatusBefore = other.getOrderStatusBefore();
                if (this$orderStatusBefore == null) {
                    if (other$orderStatusBefore != null) {
                        return false;
                    }
                } else if (!this$orderStatusBefore.equals(other$orderStatusBefore)) {
                    return false;
                }
                Object this$delOrderNum = getDelOrderNum();
                Object other$delOrderNum = other.getDelOrderNum();
                if (this$delOrderNum == null) {
                    if (other$delOrderNum != null) {
                        return false;
                    }
                } else if (!this$delOrderNum.equals(other$delOrderNum)) {
                    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$orderCode = getOrderCode();
                Object other$orderCode = other.getOrderCode();
                if (this$orderCode == null) {
                    if (other$orderCode != null) {
                        return false;
                    }
                } else if (!this$orderCode.equals(other$orderCode)) {
                    return false;
                }
                Object this$startTime = getStartTime();
                Object other$startTime = other.getStartTime();
                if (this$startTime == null) {
                    if (other$startTime != null) {
                        return false;
                    }
                } else if (!this$startTime.equals(other$startTime)) {
                    return false;
                }
                Object this$endTime = getEndTime();
                Object other$endTime = other.getEndTime();
                if (this$endTime == null) {
                    if (other$endTime != null) {
                        return false;
                    }
                } else if (!this$endTime.equals(other$endTime)) {
                    return false;
                }
                Object this$description = getDescription();
                Object other$description = other.getDescription();
                if (this$description == null) {
                    if (other$description != null) {
                        return false;
                    }
                } else if (!this$description.equals(other$description)) {
                    return false;
                }
                Object this$orderProcessList = getOrderProcessList();
                Object other$orderProcessList = other.getOrderProcessList();
                return this$orderProcessList == null ? other$orderProcessList == null : this$orderProcessList.equals(other$orderProcessList);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof Order;
    }
 
    public int hashCode() {
        int result = super.hashCode();
        Object $assignNum = getAssignNum();
        int result2 = (result * 59) + ($assignNum == null ? 43 : $assignNum.hashCode());
        Object $scrappedNum = getScrappedNum();
        int result3 = (result2 * 59) + ($scrappedNum == null ? 43 : $scrappedNum.hashCode());
        Object $qualifyNum = getQualifyNum();
        int result4 = (result3 * 59) + ($qualifyNum == null ? 43 : $qualifyNum.hashCode());
        Object $orderStatus = getOrderStatus();
        int result5 = (result4 * 59) + ($orderStatus == null ? 43 : $orderStatus.hashCode());
        Object $planId = getPlanId();
        int result6 = (result5 * 59) + ($planId == null ? 43 : $planId.hashCode());
        Object $orderStatusBefore = getOrderStatusBefore();
        int result7 = (result6 * 59) + ($orderStatusBefore == null ? 43 : $orderStatusBefore.hashCode());
        Object $delOrderNum = getDelOrderNum();
        int result8 = (result7 * 59) + ($delOrderNum == null ? 43 : $delOrderNum.hashCode());
        Object $tenantId = getTenantId();
        int result9 = (result8 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
        Object $orderCode = getOrderCode();
        int result10 = (result9 * 59) + ($orderCode == null ? 43 : $orderCode.hashCode());
        Object $startTime = getStartTime();
        int result11 = (result10 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
        Object $endTime = getEndTime();
        int result12 = (result11 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
        Object $description = getDescription();
        int result13 = (result12 * 59) + ($description == null ? 43 : $description.hashCode());
        Object $orderProcessList = getOrderProcessList();
        return (result13 * 59) + ($orderProcessList == null ? 43 : $orderProcessList.hashCode());
    }
 
    public Order() {
    }
 
    public String getTenantId() {
        return this.tenantId;
    }
 
    public String getOrderCode() {
        return this.orderCode;
    }
 
    public Integer getAssignNum() {
        return this.assignNum;
    }
 
    public Integer getScrappedNum() {
        return this.scrappedNum;
    }
 
    public Integer getQualifyNum() {
        return this.qualifyNum;
    }
 
    public Integer getOrderStatus() {
        return this.orderStatus;
    }
 
    public Long getPlanId() {
        return this.planId;
    }
 
    public Integer getOrderStatusBefore() {
        return this.orderStatusBefore;
    }
 
    public Date getStartTime() {
        return this.startTime;
    }
 
    public Date getEndTime() {
        return this.endTime;
    }
 
    public String getDescription() {
        return this.description;
    }
 
    public Order(Long planId, String orderCode, Integer assignNum) {
        this.planId = planId;
        this.orderCode = orderCode;
        this.assignNum = assignNum;
        this.orderStatus = OrderStatusEnum.NOT_STARTED.getCode();
    }
 
    public List<OrderProcess> getOrderProcessList() {
        return this.orderProcessList;
    }
 
    public Integer getDelOrderNum() {
        return this.delOrderNum;
    }
}