y_ys79
2024-01-05 e5840972b6b17ec03bfc1069a9cacfe0cef189c6
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
package com.qianwen.mdc.domain;
 
import java.io.Serializable;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
@TableName("mdc_utilization")
public class MdcUtilization implements Serializable {
    /**
     * primary key
     */
    @TableId(type=IdType.AUTO)
    private Long id;
 
    /**
     * unique id
     */
    private String uid;
 
    /**
     * machine name
     */
    private String name;
 
    /**
     * machine model
     */
    private String model;
 
    /**
     * machine category
     */
    private String category;
 
    /**
     * cnc system
     */
    //@Column(name = "cnc_system")
    private String cncSystem;
 
    /**
     * workshop
     */
    private String workshop;
 
    /**
     * section
     */
    private String section;
 
    /**
     * shift type
     */
    private Integer shift;
 
    /**
     * collect date
     */
    private String cdate;
 
    /**
     * cut time
     */
    //@Column(name = "cut_time")
    private Integer cutTime;
 
    /**
     * boot time
     */
    //@Column(name = "boot_time")
    private Integer bootTime;
 
    /**
     * three shift time
     */
    //@Column(name = "three_shift_time")
    private Integer threeShiftTime;
 
    /**
     * two shift time
     */
    //@Column(name = "two_shift_time")
    private Integer twoShiftTime;
 
    /**
     * machine down time
     */
    //@Column(name = "down_time")
    private Integer downTime;
 
    /**
     * factory
     */
    private Integer factory;
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 获取primary key
     *
     * @return id - primary key
     */
    public Long getId() {
        return id;
    }
 
    /**
     * 设置primary key
     *
     * @param id primary key
     */
    public void setId(Long id) {
        this.id = id;
    }
 
    /**
     * 获取unique id
     *
     * @return uid - unique id
     */
    public String getUid() {
        return uid;
    }
 
    /**
     * 设置unique id
     *
     * @param uid unique id
     */
    public void setUid(String uid) {
        this.uid = uid;
    }
 
    /**
     * 获取machine name
     *
     * @return name - machine name
     */
    public String getName() {
        return name;
    }
 
    /**
     * 设置machine name
     *
     * @param name machine name
     */
    public void setName(String name) {
        this.name = name;
    }
 
    /**
     * 获取machine model
     *
     * @return model - machine model
     */
    public String getModel() {
        return model;
    }
 
    /**
     * 设置machine model
     *
     * @param model machine model
     */
    public void setModel(String model) {
        this.model = model;
    }
 
    /**
     * 获取machine category
     *
     * @return category - machine category
     */
    public String getCategory() {
        return category;
    }
 
    /**
     * 设置machine category
     *
     * @param category machine category
     */
    public void setCategory(String category) {
        this.category = category;
    }
 
    /**
     * 获取cnc system
     *
     * @return cnc_system - cnc system
     */
    public String getCncSystem() {
        return cncSystem;
    }
 
    /**
     * 设置cnc system
     *
     * @param cncSystem cnc system
     */
    public void setCncSystem(String cncSystem) {
        this.cncSystem = cncSystem;
    }
 
    /**
     * 获取workshop
     *
     * @return workshop - workshop
     */
    public String getWorkshop() {
        return workshop;
    }
 
    /**
     * 设置workshop
     *
     * @param workshop workshop
     */
    public void setWorkshop(String workshop) {
        this.workshop = workshop;
    }
 
    /**
     * 获取section
     *
     * @return section - section
     */
    public String getSection() {
        return section;
    }
 
    /**
     * 设置section
     *
     * @param section section
     */
    public void setSection(String section) {
        this.section = section;
    }
 
    /**
     * 获取shift type
     *
     * @return shift - shift type
     */
    public Integer getShift() {
        return shift;
    }
 
    /**
     * 设置shift type
     *
     * @param shift shift type
     */
    public void setShift(Integer shift) {
        this.shift = shift;
    }
 
    /**
     * 获取collect date
     *
     * @return cdate - collect date
     */
    public String getCdate() {
        return cdate;
    }
 
    /**
     * 设置collect date
     *
     * @param cdate collect date
     */
    public void setCdate(String cdate) {
        this.cdate = cdate;
    }
 
    /**
     * 获取cut time
     *
     * @return cut_time - cut time
     */
    public Integer getCutTime() {
        return cutTime;
    }
 
    /**
     * 设置cut time
     *
     * @param cutTime cut time
     */
    public void setCutTime(Integer cutTime) {
        this.cutTime = cutTime;
    }
 
    /**
     * 获取boot time
     *
     * @return boot_time - boot time
     */
    public Integer getBootTime() {
        return bootTime;
    }
 
    /**
     * 设置boot time
     *
     * @param bootTime boot time
     */
    public void setBootTime(Integer bootTime) {
        this.bootTime = bootTime;
    }
 
    /**
     * 获取three shift time
     *
     * @return three_shift_time - three shift time
     */
    public Integer getThreeShiftTime() {
        return threeShiftTime;
    }
 
    /**
     * 设置three shift time
     *
     * @param threeShiftTime three shift time
     */
    public void setThreeShiftTime(Integer threeShiftTime) {
        this.threeShiftTime = threeShiftTime;
    }
 
    /**
     * 获取two shift time
     *
     * @return two_shift_time - two shift time
     */
    public Integer getTwoShiftTime() {
        return twoShiftTime;
    }
 
    /**
     * 设置two shift time
     *
     * @param twoShiftTime two shift time
     */
    public void setTwoShiftTime(Integer twoShiftTime) {
        this.twoShiftTime = twoShiftTime;
    }
 
    /**
     * 获取machine down time
     *
     * @return down_time - machine down time
     */
    public Integer getDownTime() {
        return downTime;
    }
 
    /**
     * 设置machine down time
     *
     * @param downTime machine down time
     */
    public void setDownTime(Integer downTime) {
        this.downTime = downTime;
    }
 
    /**
     * 获取factory
     *
     * @return factory - factory
     */
    public Integer getFactory() {
        return factory;
    }
 
    /**
     * 设置factory
     *
     * @param factory factory
     */
    public void setFactory(Integer factory) {
        this.factory = factory;
    }
 
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", uid=").append(uid);
        sb.append(", name=").append(name);
        sb.append(", model=").append(model);
        sb.append(", category=").append(category);
        sb.append(", cncSystem=").append(cncSystem);
        sb.append(", workshop=").append(workshop);
        sb.append(", section=").append(section);
        sb.append(", shift=").append(shift);
        sb.append(", cdate=").append(cdate);
        sb.append(", cutTime=").append(cutTime);
        sb.append(", bootTime=").append(bootTime);
        sb.append(", threeShiftTime=").append(threeShiftTime);
        sb.append(", twoShiftTime=").append(twoShiftTime);
        sb.append(", downTime=").append(downTime);
        sb.append(", factory=").append(factory);
        sb.append("]");
        return sb.toString();
    }
 
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdcUtilization other = (MdcUtilization) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getModel() == null ? other.getModel() == null : this.getModel().equals(other.getModel()))
            && (this.getCategory() == null ? other.getCategory() == null : this.getCategory().equals(other.getCategory()))
            && (this.getCncSystem() == null ? other.getCncSystem() == null : this.getCncSystem().equals(other.getCncSystem()))
            && (this.getWorkshop() == null ? other.getWorkshop() == null : this.getWorkshop().equals(other.getWorkshop()))
            && (this.getSection() == null ? other.getSection() == null : this.getSection().equals(other.getSection()))
            && (this.getShift() == null ? other.getShift() == null : this.getShift().equals(other.getShift()))
            && (this.getCdate() == null ? other.getCdate() == null : this.getCdate().equals(other.getCdate()))
            && (this.getCutTime() == null ? other.getCutTime() == null : this.getCutTime().equals(other.getCutTime()))
            && (this.getBootTime() == null ? other.getBootTime() == null : this.getBootTime().equals(other.getBootTime()))
            && (this.getThreeShiftTime() == null ? other.getThreeShiftTime() == null : this.getThreeShiftTime().equals(other.getThreeShiftTime()))
            && (this.getTwoShiftTime() == null ? other.getTwoShiftTime() == null : this.getTwoShiftTime().equals(other.getTwoShiftTime()))
            && (this.getDownTime() == null ? other.getDownTime() == null : this.getDownTime().equals(other.getDownTime()))
            && (this.getFactory() == null ? other.getFactory() == null : this.getFactory().equals(other.getFactory()));
    }
 
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getModel() == null) ? 0 : getModel().hashCode());
        result = prime * result + ((getCategory() == null) ? 0 : getCategory().hashCode());
        result = prime * result + ((getCncSystem() == null) ? 0 : getCncSystem().hashCode());
        result = prime * result + ((getWorkshop() == null) ? 0 : getWorkshop().hashCode());
        result = prime * result + ((getSection() == null) ? 0 : getSection().hashCode());
        result = prime * result + ((getShift() == null) ? 0 : getShift().hashCode());
        result = prime * result + ((getCdate() == null) ? 0 : getCdate().hashCode());
        result = prime * result + ((getCutTime() == null) ? 0 : getCutTime().hashCode());
        result = prime * result + ((getBootTime() == null) ? 0 : getBootTime().hashCode());
        result = prime * result + ((getThreeShiftTime() == null) ? 0 : getThreeShiftTime().hashCode());
        result = prime * result + ((getTwoShiftTime() == null) ? 0 : getTwoShiftTime().hashCode());
        result = prime * result + ((getDownTime() == null) ? 0 : getDownTime().hashCode());
        result = prime * result + ((getFactory() == null) ? 0 : getFactory().hashCode());
        return result;
    }
}