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
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
package com.qianwen.smartman.modules.coproduction.vo;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Size;
import com.qianwen.core.tool.node.INode;
import com.qianwen.core.tool.utils.Func;
import com.qianwen.smartman.modules.cps.enums.WorkTypeEnum;
 
@ApiModel(value = "PlanProcessVo对象", description = "计划工序")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/coproduction/vo/PlanProcessVO.class */
public class PlanProcessVO implements INode<PlanProcessVO> {
    @ApiModelProperty("租户id")
    private Long tenantId;
    @ApiModelProperty("计划类型名称")
    @Size(max = 32, message = "计划类型名称长度不能超过32")
    private String typeName;
    @ApiModelProperty("描述")
    @Size(max = 255, message = "描述长度不能超过255")
    private String description;
    @ApiModelProperty("所属计划id")
    private Long planId;
    @ApiModelProperty("工序顺序")
    private Integer sort;
    @ApiModelProperty("工序序号")
    @Size(max = 50, message = "工序序号长度不能超过50")
    private String processSequence;
    @ApiModelProperty("工序编号")
    @Size(max = 50, message = "工序编号长度不能超过50")
    private String code;
    @ApiModelProperty("工序名称")
    @Size(max = 50, message = "工序名称长度不能超过255")
    private String name;
    @ApiModelProperty("程序名称")
    @Size(max = 128, message = "程序名称长度不能超过128")
    private String programName;
    @ApiModelProperty("标准工时")
    private Integer standardTime;
    @ApiModelProperty("多工位id,用逗号隔开")
    @Size(max = 500, message = "多工位id,用逗号隔开长度不能超过500")
    private String workstationId;
    @ApiModelProperty("多工位id,用逗号隔开")
    @Size(max = 500, message = "多工位id,用逗号隔开长度不能超过500")
    private String workstationName;
    @ApiModelProperty("工艺包id")
    private Long artBagId;
    @ApiModelProperty("工艺包名称")
    @Size(max = 50, message = "工艺包名称长度不能超过50")
    private String artBagName;
    @ApiModelProperty("准备工时")
    private Integer prepareTime;
    @ApiModelProperty("拆卸工时")
    private Integer disassemblyTime;
    @ApiModelProperty("运输工时")
    private Integer transportTime;
    @ApiModelProperty("是否质检 默认 0否 1是")
    private Integer whetherTest;
    @ApiModelProperty("是否并行 默认 0否 1是")
    private Integer whetherParallel;
    @ApiModelProperty("工序派发状态 默认 0未派发 1已派发")
    private Integer assignStatus;
    @ApiModelProperty("主序id(当主序id不为空时,代表工序是子序)")
    private Long mainSequenceId;
    @ApiModelProperty("主序id(当主序id不为空时,代表工序是子序)")
    private Long parentId;
    @ApiModelProperty("工种")
    private Integer workType;
    @ApiModelProperty("工种翻译")
    private String workTypeLabel;
    private Long id;
    @ApiModelProperty("状态")
    private Integer status;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PlanProcessVO> children;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Boolean hasChildren;
 
    public void setTenantId(final Long tenantId) {
        this.tenantId = tenantId;
    }
 
    public void setTypeName(final String typeName) {
        this.typeName = typeName;
    }
 
    public void setDescription(final String description) {
        this.description = description;
    }
 
    public void setPlanId(final Long planId) {
        this.planId = planId;
    }
 
    public void setSort(final Integer sort) {
        this.sort = sort;
    }
 
    public void setProcessSequence(final String processSequence) {
        this.processSequence = processSequence;
    }
 
    public void setCode(final String code) {
        this.code = code;
    }
 
    public void setName(final String name) {
        this.name = name;
    }
 
    public void setProgramName(final String programName) {
        this.programName = programName;
    }
 
    public void setStandardTime(final Integer standardTime) {
        this.standardTime = standardTime;
    }
 
    public void setWorkstationId(final String workstationId) {
        this.workstationId = workstationId;
    }
 
    public void setWorkstationName(final String workstationName) {
        this.workstationName = workstationName;
    }
 
    public void setArtBagId(final Long artBagId) {
        this.artBagId = artBagId;
    }
 
    public void setArtBagName(final String artBagName) {
        this.artBagName = artBagName;
    }
 
    public void setPrepareTime(final Integer prepareTime) {
        this.prepareTime = prepareTime;
    }
 
    public void setDisassemblyTime(final Integer disassemblyTime) {
        this.disassemblyTime = disassemblyTime;
    }
 
    public void setTransportTime(final Integer transportTime) {
        this.transportTime = transportTime;
    }
 
    public void setWhetherTest(final Integer whetherTest) {
        this.whetherTest = whetherTest;
    }
 
    public void setWhetherParallel(final Integer whetherParallel) {
        this.whetherParallel = whetherParallel;
    }
 
    public void setAssignStatus(final Integer assignStatus) {
        this.assignStatus = assignStatus;
    }
 
    public void setMainSequenceId(final Long mainSequenceId) {
        this.mainSequenceId = mainSequenceId;
    }
 
    public void setParentId(final Long parentId) {
        this.parentId = parentId;
    }
 
    public void setWorkType(final Integer workType) {
        this.workType = workType;
    }
 
    public void setWorkTypeLabel(final String workTypeLabel) {
        this.workTypeLabel = workTypeLabel;
    }
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setStatus(final Integer status) {
        this.status = status;
    }
 
    public void setChildren(final List<PlanProcessVO> children) {
        this.children = children;
    }
 
    public void setHasChildren(final Boolean hasChildren) {
        this.hasChildren = hasChildren;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof PlanProcessVO) {
            PlanProcessVO other = (PlanProcessVO) o;
            if (other.canEqual(this)) {
                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$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$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$standardTime = getStandardTime();
                Object other$standardTime = other.getStandardTime();
                if (this$standardTime == null) {
                    if (other$standardTime != null) {
                        return false;
                    }
                } else if (!this$standardTime.equals(other$standardTime)) {
                    return false;
                }
                Object this$artBagId = getArtBagId();
                Object other$artBagId = other.getArtBagId();
                if (this$artBagId == null) {
                    if (other$artBagId != null) {
                        return false;
                    }
                } else if (!this$artBagId.equals(other$artBagId)) {
                    return false;
                }
                Object this$prepareTime = getPrepareTime();
                Object other$prepareTime = other.getPrepareTime();
                if (this$prepareTime == null) {
                    if (other$prepareTime != null) {
                        return false;
                    }
                } else if (!this$prepareTime.equals(other$prepareTime)) {
                    return false;
                }
                Object this$disassemblyTime = getDisassemblyTime();
                Object other$disassemblyTime = other.getDisassemblyTime();
                if (this$disassemblyTime == null) {
                    if (other$disassemblyTime != null) {
                        return false;
                    }
                } else if (!this$disassemblyTime.equals(other$disassemblyTime)) {
                    return false;
                }
                Object this$transportTime = getTransportTime();
                Object other$transportTime = other.getTransportTime();
                if (this$transportTime == null) {
                    if (other$transportTime != null) {
                        return false;
                    }
                } else if (!this$transportTime.equals(other$transportTime)) {
                    return false;
                }
                Object this$whetherTest = getWhetherTest();
                Object other$whetherTest = other.getWhetherTest();
                if (this$whetherTest == null) {
                    if (other$whetherTest != null) {
                        return false;
                    }
                } else if (!this$whetherTest.equals(other$whetherTest)) {
                    return false;
                }
                Object this$whetherParallel = getWhetherParallel();
                Object other$whetherParallel = other.getWhetherParallel();
                if (this$whetherParallel == null) {
                    if (other$whetherParallel != null) {
                        return false;
                    }
                } else if (!this$whetherParallel.equals(other$whetherParallel)) {
                    return false;
                }
                Object this$assignStatus = getAssignStatus();
                Object other$assignStatus = other.getAssignStatus();
                if (this$assignStatus == null) {
                    if (other$assignStatus != null) {
                        return false;
                    }
                } else if (!this$assignStatus.equals(other$assignStatus)) {
                    return false;
                }
                Object this$mainSequenceId = getMainSequenceId();
                Object other$mainSequenceId = other.getMainSequenceId();
                if (this$mainSequenceId == null) {
                    if (other$mainSequenceId != null) {
                        return false;
                    }
                } else if (!this$mainSequenceId.equals(other$mainSequenceId)) {
                    return false;
                }
                Object this$parentId = getParentId();
                Object other$parentId = other.getParentId();
                if (this$parentId == null) {
                    if (other$parentId != null) {
                        return false;
                    }
                } else if (!this$parentId.equals(other$parentId)) {
                    return false;
                }
                Object this$workType = getWorkType();
                Object other$workType = other.getWorkType();
                if (this$workType == null) {
                    if (other$workType != null) {
                        return false;
                    }
                } else if (!this$workType.equals(other$workType)) {
                    return false;
                }
                Object this$id = getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }
                Object this$status = getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }
                Object this$hasChildren = getHasChildren();
                Object other$hasChildren = other.getHasChildren();
                if (this$hasChildren == null) {
                    if (other$hasChildren != null) {
                        return false;
                    }
                } else if (!this$hasChildren.equals(other$hasChildren)) {
                    return false;
                }
                Object this$typeName = getTypeName();
                Object other$typeName = other.getTypeName();
                if (this$typeName == null) {
                    if (other$typeName != null) {
                        return false;
                    }
                } else if (!this$typeName.equals(other$typeName)) {
                    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$processSequence = getProcessSequence();
                Object other$processSequence = other.getProcessSequence();
                if (this$processSequence == null) {
                    if (other$processSequence != null) {
                        return false;
                    }
                } else if (!this$processSequence.equals(other$processSequence)) {
                    return false;
                }
                Object this$code = getCode();
                Object other$code = other.getCode();
                if (this$code == null) {
                    if (other$code != null) {
                        return false;
                    }
                } else if (!this$code.equals(other$code)) {
                    return false;
                }
                Object this$name = getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }
                Object this$programName = getProgramName();
                Object other$programName = other.getProgramName();
                if (this$programName == null) {
                    if (other$programName != null) {
                        return false;
                    }
                } else if (!this$programName.equals(other$programName)) {
                    return false;
                }
                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$workstationName = getWorkstationName();
                Object other$workstationName = other.getWorkstationName();
                if (this$workstationName == null) {
                    if (other$workstationName != null) {
                        return false;
                    }
                } else if (!this$workstationName.equals(other$workstationName)) {
                    return false;
                }
                Object this$artBagName = getArtBagName();
                Object other$artBagName = other.getArtBagName();
                if (this$artBagName == null) {
                    if (other$artBagName != null) {
                        return false;
                    }
                } else if (!this$artBagName.equals(other$artBagName)) {
                    return false;
                }
                Object this$workTypeLabel = getWorkTypeLabel();
                Object other$workTypeLabel = other.getWorkTypeLabel();
                if (this$workTypeLabel == null) {
                    if (other$workTypeLabel != null) {
                        return false;
                    }
                } else if (!this$workTypeLabel.equals(other$workTypeLabel)) {
                    return false;
                }
                Object this$children = getChildren();
                Object other$children = other.getChildren();
                return this$children == null ? other$children == null : this$children.equals(other$children);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof PlanProcessVO;
    }
 
    public int hashCode() {
        Object $tenantId = getTenantId();
        int result = (1 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
        Object $planId = getPlanId();
        int result2 = (result * 59) + ($planId == null ? 43 : $planId.hashCode());
        Object $sort = getSort();
        int result3 = (result2 * 59) + ($sort == null ? 43 : $sort.hashCode());
        Object $standardTime = getStandardTime();
        int result4 = (result3 * 59) + ($standardTime == null ? 43 : $standardTime.hashCode());
        Object $artBagId = getArtBagId();
        int result5 = (result4 * 59) + ($artBagId == null ? 43 : $artBagId.hashCode());
        Object $prepareTime = getPrepareTime();
        int result6 = (result5 * 59) + ($prepareTime == null ? 43 : $prepareTime.hashCode());
        Object $disassemblyTime = getDisassemblyTime();
        int result7 = (result6 * 59) + ($disassemblyTime == null ? 43 : $disassemblyTime.hashCode());
        Object $transportTime = getTransportTime();
        int result8 = (result7 * 59) + ($transportTime == null ? 43 : $transportTime.hashCode());
        Object $whetherTest = getWhetherTest();
        int result9 = (result8 * 59) + ($whetherTest == null ? 43 : $whetherTest.hashCode());
        Object $whetherParallel = getWhetherParallel();
        int result10 = (result9 * 59) + ($whetherParallel == null ? 43 : $whetherParallel.hashCode());
        Object $assignStatus = getAssignStatus();
        int result11 = (result10 * 59) + ($assignStatus == null ? 43 : $assignStatus.hashCode());
        Object $mainSequenceId = getMainSequenceId();
        int result12 = (result11 * 59) + ($mainSequenceId == null ? 43 : $mainSequenceId.hashCode());
        Object $parentId = getParentId();
        int result13 = (result12 * 59) + ($parentId == null ? 43 : $parentId.hashCode());
        Object $workType = getWorkType();
        int result14 = (result13 * 59) + ($workType == null ? 43 : $workType.hashCode());
        Object $id = getId();
        int result15 = (result14 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $status = getStatus();
        int result16 = (result15 * 59) + ($status == null ? 43 : $status.hashCode());
        Object $hasChildren = getHasChildren();
        int result17 = (result16 * 59) + ($hasChildren == null ? 43 : $hasChildren.hashCode());
        Object $typeName = getTypeName();
        int result18 = (result17 * 59) + ($typeName == null ? 43 : $typeName.hashCode());
        Object $description = getDescription();
        int result19 = (result18 * 59) + ($description == null ? 43 : $description.hashCode());
        Object $processSequence = getProcessSequence();
        int result20 = (result19 * 59) + ($processSequence == null ? 43 : $processSequence.hashCode());
        Object $code = getCode();
        int result21 = (result20 * 59) + ($code == null ? 43 : $code.hashCode());
        Object $name = getName();
        int result22 = (result21 * 59) + ($name == null ? 43 : $name.hashCode());
        Object $programName = getProgramName();
        int result23 = (result22 * 59) + ($programName == null ? 43 : $programName.hashCode());
        Object $workstationId = getWorkstationId();
        int result24 = (result23 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
        Object $workstationName = getWorkstationName();
        int result25 = (result24 * 59) + ($workstationName == null ? 43 : $workstationName.hashCode());
        Object $artBagName = getArtBagName();
        int result26 = (result25 * 59) + ($artBagName == null ? 43 : $artBagName.hashCode());
        Object $workTypeLabel = getWorkTypeLabel();
        int result27 = (result26 * 59) + ($workTypeLabel == null ? 43 : $workTypeLabel.hashCode());
        Object $children = getChildren();
        return (result27 * 59) + ($children == null ? 43 : $children.hashCode());
    }
 
    public String toString() {
        return "PlanProcessVO(tenantId=" + getTenantId() + ", typeName=" + getTypeName() + ", description=" + getDescription() + ", planId=" + getPlanId() + ", sort=" + getSort() + ", processSequence=" + getProcessSequence() + ", code=" + getCode() + ", name=" + getName() + ", programName=" + getProgramName() + ", standardTime=" + getStandardTime() + ", workstationId=" + getWorkstationId() + ", workstationName=" + getWorkstationName() + ", artBagId=" + getArtBagId() + ", artBagName=" + getArtBagName() + ", prepareTime=" + getPrepareTime() + ", disassemblyTime=" + getDisassemblyTime() + ", transportTime=" + getTransportTime() + ", whetherTest=" + getWhetherTest() + ", whetherParallel=" + getWhetherParallel() + ", assignStatus=" + getAssignStatus() + ", mainSequenceId=" + getMainSequenceId() + ", parentId=" + getParentId() + ", workType=" + getWorkType() + ", workTypeLabel=" + getWorkTypeLabel() + ", id=" + getId() + ", status=" + getStatus() + ", children=" + getChildren() + ", hasChildren=" + getHasChildren() + ")";
    }
 
    public Long getTenantId() {
        return this.tenantId;
    }
 
    public String getTypeName() {
        return this.typeName;
    }
 
    public String getDescription() {
        return this.description;
    }
 
    public Long getPlanId() {
        return this.planId;
    }
 
    public Integer getSort() {
        return this.sort;
    }
 
    public String getProcessSequence() {
        return this.processSequence;
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getName() {
        return this.name;
    }
 
    public String getProgramName() {
        return this.programName;
    }
 
    public Integer getStandardTime() {
        return this.standardTime;
    }
 
    public String getWorkstationId() {
        return this.workstationId;
    }
 
    public String getWorkstationName() {
        return this.workstationName;
    }
 
    public Long getArtBagId() {
        return this.artBagId;
    }
 
    public String getArtBagName() {
        return this.artBagName;
    }
 
    public Integer getPrepareTime() {
        return this.prepareTime;
    }
 
    public Integer getDisassemblyTime() {
        return this.disassemblyTime;
    }
 
    public Integer getTransportTime() {
        return this.transportTime;
    }
 
    public Integer getWhetherTest() {
        return this.whetherTest;
    }
 
    public Integer getWhetherParallel() {
        return this.whetherParallel;
    }
 
    public Integer getAssignStatus() {
        return this.assignStatus;
    }
 
    public Long getMainSequenceId() {
        return this.mainSequenceId;
    }
 
    public Long getParentId() {
        return this.parentId;
    }
 
    public Integer getWorkType() {
        return this.workType;
    }
 
    public Long getId() {
        return this.id;
    }
 
    public Integer getStatus() {
        return this.status;
    }
 
    public Boolean getHasChildren() {
        return Boolean.valueOf(this.children.size() > 0);
    }
 
    public List<PlanProcessVO> getChildren() {
        if (this.children == null) {
            this.children = new ArrayList();
        }
        return this.children;
    }
 
    public String getWorkTypeLabel() {
        if (Func.isNotEmpty(this.workType)) {
            WorkTypeEnum workTypeEnum = WorkTypeEnum.findByCode(this.workType);
            if (Func.isNotEmpty(workTypeEnum)) {
                return workTypeEnum.getDesc();
            }
            return null;
        }
        return null;
    }
}