yangys
2024-10-30 c27b939fa5fa6ce4d712f7e9ced2ad811d69d5ec
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
641
642
643
package com.qianwen.smartman.modules.smis.vo;
 
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.Date;
 
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.EqualsBuilder;
 
import com.qianwen.core.coderule.annotation.CodeRuleObjectType;
import com.qianwen.core.coderule.constant.enums.MetaObjectTypeEnum;
import com.qianwen.smartman.modules.system.vo.ICard;
 
@CodeRuleObjectType(MetaObjectTypeEnum.WORK_STATION)
public class WorkstationVO implements ICard {
    private static final long serialVersionUID = -8938927851683015090L;
    @ApiModelProperty("工位图片地址")
    public String avatar;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("主键")
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("工位组id")
    private Long groupId;
    @ApiModelProperty("工位组名称")
    private String groupName;
    @ApiModelProperty("工位编号")
    private String code;
    @ApiModelProperty("工位名称")
    private String name;
    @ApiModelProperty("工位类型:空、机器、人工")
    private Integer type;
    @ApiModelProperty("生产日历编码")
    private String calendarCode;
    @ApiModelProperty("生产日历名称")
    private String calendarName;
    @ApiModelProperty("待生效生产日历编码")
    private String calendarCodeWaiting;
    @ApiModelProperty("标准效率")
    private BigDecimal standardEfficiency;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("产能组")
    private Long productionCapacityGroup;
    @ApiModelProperty("扩展id")
    private String extendId;
    @ApiModelProperty("机器id")
    private Long machineId;
    @ApiModelProperty("机器编号")
    private String machineCode;
    @ApiModelProperty("机器名称")
    private String machineName;
    @ApiModelProperty("机器品牌")
    private String machineBrand;
    @ApiModelProperty("机器PIN码")
    private String machinePinCode;
    @ApiModelProperty("机器短编号")
    private String machineShortCode;
    private String bkColor;
    @ApiModelProperty("工位设备类型")
    private Integer deviceType;
    @ApiModelProperty("工位加工类型")
    private Integer properties;
    @ApiModelProperty("采集开关")
    private Integer collectSwitch;
    private Date createTime;
    @ApiModelProperty("业务状态 1启用 0 停用")
    private Integer status;
    @JsonSerialize(using = ToStringSerializer.class)
    //@ApiModelProperty("ftp目录ID")
    //private Long ftpDirectoryId;
    //@ApiModelProperty("ftp目录名称")
    //private String ftpDirectoryName;
    @ApiModelProperty("程序传输方式 1FTP 2串口")
    private Integer transmissionMethod;
    @ApiModelProperty("权限ID")
    private Long createDept;
    @ApiModelProperty("机器类型id")
    private Long machineTypeId;
    @ApiModelProperty("机器类型编码")
    private String machineTypeCode;
    @ApiModelProperty("机器类型名称")
    private String machineTypeName;
    @ApiModelProperty("机器规格")
    private String machineModel;
 
    
    public static class WorkstationVOBuilder {
        private String avatar;
        private Long id;
        private Long groupId;
        private String groupName;
        private String code;
        private String name;
        private Integer type;
        private String calendarCode;
        private String calendarName;
        private String calendarCodeWaiting;
        private BigDecimal standardEfficiency;
        private Long productionCapacityGroup;
        private String extendId;
        private Long machineId;
        private String machineCode;
        private String machineName;
        private String machineBrand;
        private String machinePinCode;
        private String machineShortCode;
        private String bkColor;
        private Integer deviceType;
        private Integer properties;
        private Integer collectSwitch;
        private Date createTime;
        private Integer status;
        private Long ftpDirectoryId;
        private String ftpDirectoryName;
        private Integer transmissionMethod;
        private Long createDept;
        private Long machineTypeId;
        private String machineTypeCode;
        private String machineTypeName;
        private String machineModel;
 
        WorkstationVOBuilder() {
        }
 
        public WorkstationVOBuilder avatar(final String avatar) {
            this.avatar = avatar;
            return this;
        }
 
        public WorkstationVOBuilder id(final Long id) {
            this.id = id;
            return this;
        }
 
        public WorkstationVOBuilder groupId(final Long groupId) {
            this.groupId = groupId;
            return this;
        }
 
        public WorkstationVOBuilder groupName(final String groupName) {
            this.groupName = groupName;
            return this;
        }
 
        public WorkstationVOBuilder code(final String code) {
            this.code = code;
            return this;
        }
 
        public WorkstationVOBuilder name(final String name) {
            this.name = name;
            return this;
        }
 
        public WorkstationVOBuilder type(final Integer type) {
            this.type = type;
            return this;
        }
 
        public WorkstationVOBuilder calendarCode(final String calendarCode) {
            this.calendarCode = calendarCode;
            return this;
        }
 
        public WorkstationVOBuilder calendarName(final String calendarName) {
            this.calendarName = calendarName;
            return this;
        }
 
        public WorkstationVOBuilder calendarCodeWaiting(final String calendarCodeWaiting) {
            this.calendarCodeWaiting = calendarCodeWaiting;
            return this;
        }
 
        public WorkstationVOBuilder standardEfficiency(final BigDecimal standardEfficiency) {
            this.standardEfficiency = standardEfficiency;
            return this;
        }
 
        public WorkstationVOBuilder productionCapacityGroup(final Long productionCapacityGroup) {
            this.productionCapacityGroup = productionCapacityGroup;
            return this;
        }
 
        public WorkstationVOBuilder extendId(final String extendId) {
            this.extendId = extendId;
            return this;
        }
 
        public WorkstationVOBuilder machineId(final Long machineId) {
            this.machineId = machineId;
            return this;
        }
 
        public WorkstationVOBuilder machineCode(final String machineCode) {
            this.machineCode = machineCode;
            return this;
        }
 
        public WorkstationVOBuilder machineName(final String machineName) {
            this.machineName = machineName;
            return this;
        }
 
        public WorkstationVOBuilder machineBrand(final String machineBrand) {
            this.machineBrand = machineBrand;
            return this;
        }
 
        public WorkstationVOBuilder machinePinCode(final String machinePinCode) {
            this.machinePinCode = machinePinCode;
            return this;
        }
 
        public WorkstationVOBuilder machineShortCode(final String machineShortCode) {
            this.machineShortCode = machineShortCode;
            return this;
        }
 
        public WorkstationVOBuilder bkColor(final String bkColor) {
            this.bkColor = bkColor;
            return this;
        }
 
        public WorkstationVOBuilder deviceType(final Integer deviceType) {
            this.deviceType = deviceType;
            return this;
        }
 
        public WorkstationVOBuilder properties(final Integer properties) {
            this.properties = properties;
            return this;
        }
 
        public WorkstationVOBuilder collectSwitch(final Integer collectSwitch) {
            this.collectSwitch = collectSwitch;
            return this;
        }
 
        public WorkstationVOBuilder createTime(final Date createTime) {
            this.createTime = createTime;
            return this;
        }
 
        public WorkstationVOBuilder status(final Integer status) {
            this.status = status;
            return this;
        }
 
        public WorkstationVOBuilder ftpDirectoryId(final Long ftpDirectoryId) {
            this.ftpDirectoryId = ftpDirectoryId;
            return this;
        }
 
        public WorkstationVOBuilder ftpDirectoryName(final String ftpDirectoryName) {
            this.ftpDirectoryName = ftpDirectoryName;
            return this;
        }
 
        public WorkstationVOBuilder transmissionMethod(final Integer transmissionMethod) {
            this.transmissionMethod = transmissionMethod;
            return this;
        }
 
        public WorkstationVOBuilder createDept(final Long createDept) {
            this.createDept = createDept;
            return this;
        }
 
        public WorkstationVOBuilder machineTypeId(final Long machineTypeId) {
            this.machineTypeId = machineTypeId;
            return this;
        }
 
        public WorkstationVOBuilder machineTypeCode(final String machineTypeCode) {
            this.machineTypeCode = machineTypeCode;
            return this;
        }
 
        public WorkstationVOBuilder machineTypeName(final String machineTypeName) {
            this.machineTypeName = machineTypeName;
            return this;
        }
 
        public WorkstationVOBuilder machineModel(final String machineModel) {
            this.machineModel = machineModel;
            return this;
        }
 
        public WorkstationVO build() {
            return new WorkstationVO(this.avatar, this.id, this.groupId, this.groupName, this.code, this.name, this.type, this.calendarCode, this.calendarName, this.calendarCodeWaiting, this.standardEfficiency, this.productionCapacityGroup, this.extendId, this.machineId, this.machineCode, this.machineName, this.machineBrand, this.machinePinCode, this.machineShortCode, this.bkColor, this.deviceType, this.properties, this.collectSwitch, this.createTime, this.status,  this.transmissionMethod, this.createDept, this.machineTypeId, this.machineTypeCode, this.machineTypeName, this.machineModel);
        }
 
        public String toString() {
            return "WorkstationVO.WorkstationVOBuilder(avatar=" + this.avatar + ", id=" + this.id + ", groupId=" + this.groupId + ", groupName=" + this.groupName + ", code=" + this.code + ", name=" + this.name + ", type=" + this.type + ", calendarCode=" + this.calendarCode + ", calendarName=" + this.calendarName + ", calendarCodeWaiting=" + this.calendarCodeWaiting + ", standardEfficiency=" + this.standardEfficiency + ", productionCapacityGroup=" + this.productionCapacityGroup + ", extendId=" + this.extendId + ", machineId=" + this.machineId + ", machineCode=" + this.machineCode + ", machineName=" + this.machineName + ", machineBrand=" + this.machineBrand + ", machinePinCode=" + this.machinePinCode + ", machineShortCode=" + this.machineShortCode + ", bkColor=" + this.bkColor + ", deviceType=" + this.deviceType + ", properties=" + this.properties + ", collectSwitch=" + this.collectSwitch + ", createTime=" + this.createTime + ", status=" + this.status + ", ftpDirectoryId=" + this.ftpDirectoryId + ", ftpDirectoryName=" + this.ftpDirectoryName + ", transmissionMethod=" + this.transmissionMethod + ", createDept=" + this.createDept + ", machineTypeId=" + this.machineTypeId + ", machineTypeCode=" + this.machineTypeCode + ", machineTypeName=" + this.machineTypeName + ", machineModel=" + this.machineModel + ")";
        }
    }
 
    public void setAvatar(final String avatar) {
        this.avatar = avatar;
    }
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setGroupId(final Long groupId) {
        this.groupId = groupId;
    }
 
    public void setGroupName(final String groupName) {
        this.groupName = groupName;
    }
 
    public void setCode(final String code) {
        this.code = code;
    }
 
    public void setName(final String name) {
        this.name = name;
    }
 
    public void setType(final Integer type) {
        this.type = type;
    }
 
    public void setCalendarCode(final String calendarCode) {
        this.calendarCode = calendarCode;
    }
 
    public void setCalendarName(final String calendarName) {
        this.calendarName = calendarName;
    }
 
    public void setCalendarCodeWaiting(final String calendarCodeWaiting) {
        this.calendarCodeWaiting = calendarCodeWaiting;
    }
 
    public void setStandardEfficiency(final BigDecimal standardEfficiency) {
        this.standardEfficiency = standardEfficiency;
    }
 
    public void setProductionCapacityGroup(final Long productionCapacityGroup) {
        this.productionCapacityGroup = productionCapacityGroup;
    }
 
    public void setExtendId(final String extendId) {
        this.extendId = extendId;
    }
 
    public void setMachineId(final Long machineId) {
        this.machineId = machineId;
    }
 
    public void setMachineCode(final String machineCode) {
        this.machineCode = machineCode;
    }
 
    public void setMachineName(final String machineName) {
        this.machineName = machineName;
    }
 
    public void setMachineBrand(final String machineBrand) {
        this.machineBrand = machineBrand;
    }
 
    public void setMachinePinCode(final String machinePinCode) {
        this.machinePinCode = machinePinCode;
    }
 
    public void setMachineShortCode(final String machineShortCode) {
        this.machineShortCode = machineShortCode;
    }
 
    public void setBkColor(final String bkColor) {
        this.bkColor = bkColor;
    }
 
    public void setDeviceType(final Integer deviceType) {
        this.deviceType = deviceType;
    }
 
    public void setProperties(final Integer properties) {
        this.properties = properties;
    }
 
    public void setCollectSwitch(final Integer collectSwitch) {
        this.collectSwitch = collectSwitch;
    }
 
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
 
    public void setStatus(final Integer status) {
        this.status = status;
    }
    /*
    public void setFtpDirectoryId(final Long ftpDirectoryId) {
        this.ftpDirectoryId = ftpDirectoryId;
    }
 
    public void setFtpDirectoryName(final String ftpDirectoryName) {
        this.ftpDirectoryName = ftpDirectoryName;
    }*/
 
    public void setTransmissionMethod(final Integer transmissionMethod) {
        this.transmissionMethod = transmissionMethod;
    }
 
    public void setCreateDept(final Long createDept) {
        this.createDept = createDept;
    }
 
    public void setMachineTypeId(final Long machineTypeId) {
        this.machineTypeId = machineTypeId;
    }
 
    public void setMachineTypeCode(final String machineTypeCode) {
        this.machineTypeCode = machineTypeCode;
    }
 
    public void setMachineTypeName(final String machineTypeName) {
        this.machineTypeName = machineTypeName;
    }
 
    public void setMachineModel(final String machineModel) {
        this.machineModel = machineModel;
    }
 
    public boolean equals(final Object o) {
        return EqualsBuilder.reflectionEquals(this, o, true);
        
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof WorkstationVO;
    }
 
    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
        
    }
 
    public String toString() {
        return "WorkstationVO(avatar=" + getAvatar() + ", id=" + getId() + ", groupId=" + getGroupId() + ", groupName=" + getGroupName() + ", code=" + getCode() + ", name=" + getName() + ", type=" + getType() + ", calendarCode=" + getCalendarCode() + ", calendarName=" + getCalendarName() + ", calendarCodeWaiting=" + getCalendarCodeWaiting() + ", standardEfficiency=" + getStandardEfficiency() + ", productionCapacityGroup=" + getProductionCapacityGroup() + ", extendId=" + getExtendId() + ", machineId=" + getMachineId() + ", machineCode=" + getMachineCode() + ", machineName=" + getMachineName() + ", machineBrand=" + getMachineBrand() + ", machinePinCode=" + getMachinePinCode() + ", machineShortCode=" + getMachineShortCode() + ", bkColor=" + getBkColor() + ", deviceType=" + getDeviceType() + ", properties=" + getProperties() + ", collectSwitch=" + getCollectSwitch() + ", createTime=" + getCreateTime() + ", status=" + getStatus() + ", transmissionMethod=" + getTransmissionMethod() + ", createDept=" + getCreateDept() + ", machineTypeId=" + getMachineTypeId() + ", machineTypeCode=" + getMachineTypeCode() + ", machineTypeName=" + getMachineTypeName() + ", machineModel=" + getMachineModel() + ")";
    }
 
    public static WorkstationVOBuilder builder() {
        return new WorkstationVOBuilder();
    }
 
    public WorkstationVO(final String avatar, final Long id, final Long groupId, final String groupName, final String code, final String name, final Integer type, final String calendarCode, final String calendarName, final String calendarCodeWaiting, final BigDecimal standardEfficiency, final Long productionCapacityGroup, final String extendId, final Long machineId, final String machineCode, final String machineName, final String machineBrand, final String machinePinCode, final String machineShortCode, final String bkColor, final Integer deviceType, final Integer properties, final Integer collectSwitch, final Date createTime, final Integer status,  final Integer transmissionMethod, final Long createDept, final Long machineTypeId, final String machineTypeCode, final String machineTypeName, final String machineModel) {
        this.createTime = new Date();
        this.avatar = avatar;
        this.id = id;
        this.groupId = groupId;
        this.groupName = groupName;
        this.code = code;
        this.name = name;
        this.type = type;
        this.calendarCode = calendarCode;
        this.calendarName = calendarName;
        this.calendarCodeWaiting = calendarCodeWaiting;
        this.standardEfficiency = standardEfficiency;
        this.productionCapacityGroup = productionCapacityGroup;
        this.extendId = extendId;
        this.machineId = machineId;
        this.machineCode = machineCode;
        this.machineName = machineName;
        this.machineBrand = machineBrand;
        this.machinePinCode = machinePinCode;
        this.machineShortCode = machineShortCode;
        this.bkColor = bkColor;
        this.deviceType = deviceType;
        this.properties = properties;
        this.collectSwitch = collectSwitch;
        this.createTime = createTime;
        this.status = status;
        //this.ftpDirectoryId = ftpDirectoryId;
        //this.ftpDirectoryName = ftpDirectoryName;
        this.transmissionMethod = transmissionMethod;
        this.createDept = createDept;
        this.machineTypeId = machineTypeId;
        this.machineTypeCode = machineTypeCode;
        this.machineTypeName = machineTypeName;
        this.machineModel = machineModel;
    }
 
    public WorkstationVO() {
        this.createTime = new Date();
    }
 
    public String getAvatar() {
        return this.avatar;
    }
 
    public Long getId() {
        return this.id;
    }
 
    public Long getGroupId() {
        return this.groupId;
    }
 
    public String getGroupName() {
        return this.groupName;
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getName() {
        return this.name;
    }
 
    public Integer getType() {
        return this.type;
    }
 
    public String getCalendarCode() {
        return this.calendarCode;
    }
 
    public String getCalendarName() {
        return this.calendarName;
    }
 
    public String getCalendarCodeWaiting() {
        return this.calendarCodeWaiting;
    }
 
    public BigDecimal getStandardEfficiency() {
        return this.standardEfficiency;
    }
 
    public Long getProductionCapacityGroup() {
        return this.productionCapacityGroup;
    }
 
    public String getExtendId() {
        return this.extendId;
    }
 
    public Long getMachineId() {
        return this.machineId;
    }
 
    public String getMachineCode() {
        return this.machineCode;
    }
 
    public String getMachineName() {
        return this.machineName;
    }
 
    public String getMachineBrand() {
        return this.machineBrand;
    }
 
    public String getMachinePinCode() {
        return this.machinePinCode;
    }
 
    public String getMachineShortCode() {
        return this.machineShortCode;
    }
 
    @Override // org.springblade.modules.system.vo.ICard
    public String getBkColor() {
        return this.bkColor;
    }
 
    public Integer getDeviceType() {
        return this.deviceType;
    }
 
    public Integer getProperties() {
        return this.properties;
    }
 
    public Integer getCollectSwitch() {
        return this.collectSwitch;
    }
 
    public Date getCreateTime() {
        return this.createTime;
    }
 
    public Integer getStatus() {
        return this.status;
    }
    /*
    public Long getFtpDirectoryId() {
        return this.ftpDirectoryId;
    }
 
    public String getFtpDirectoryName() {
        return this.ftpDirectoryName;
    }*/
 
    public Integer getTransmissionMethod() {
        return this.transmissionMethod;
    }
 
    public Long getCreateDept() {
        return this.createDept;
    }
 
    public Long getMachineTypeId() {
        return this.machineTypeId;
    }
 
    public String getMachineTypeCode() {
        return this.machineTypeCode;
    }
 
    public String getMachineTypeName() {
        return this.machineTypeName;
    }
 
    public String getMachineModel() {
        return this.machineModel;
    }
 
    @Override // org.springblade.modules.system.vo.ICard
    public String getCardTitle() {
        return getName();
    }
 
    @Override // org.springblade.modules.system.vo.ICard
    public String getBkImage() {
        return this.avatar;
    }
 
    @Override // org.springblade.modules.system.vo.ICard
    public String getStatusCode() {
        return null;
    }
}