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
package com.qianwen.smartman.modules.cps.entity;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import com.qianwen.smartman.modules.system.constant.SystemFieldConstant;
 
@ApiModel(value = "班次日切片entity", description = "班次日切片entity")
@TableName("blade_production_calendar_daytime")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/ProductionCalendarDaytime.class */
public class ProductionCalendarDaytime implements Serializable {
    private static final long serialVersionUID = 2597571287144588437L;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty("生产日历id")
    private Long calendarId;
    @ApiModelProperty("班次日id")
    private Long calendarDayId;
    @ApiModelProperty("班次日期")
    private LocalDate calendarDate;
    @ApiModelProperty("班次开始时间")
    private LocalDateTime startTime;
    @ApiModelProperty("班次结束时间")
    private LocalDateTime endTime;
    @ApiModelProperty("班次序号")
    private Integer shiftIndex;
    @ApiModelProperty("班次类型(0-工厂日内未定义时段,1-工作时段,2-休息时段,3-工厂日外未定义时段,4-休息日)")
    private Integer shiftType;
    @ApiModelProperty("属于第几周")
    private Integer week;
    @ApiModelProperty("属于第几月")
    private Integer month;
    @ApiModelProperty("属于第几年")
    private Integer year;
    @ApiModelProperty("是否是未定义工厂日")
    private Integer isUndefined;
    @ApiModelProperty("是否高优先级")
    private Integer isHighPriority;
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private Long createUser;
    @TableField(value = SystemFieldConstant.CREATE_TIME, fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;
 
    /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/ProductionCalendarDaytime$ProductionCalendarDaytimeBuilder.class */
    public static class ProductionCalendarDaytimeBuilder {
        private Long id;
        private Long calendarId;
        private Long calendarDayId;
        private LocalDate calendarDate;
        private LocalDateTime startTime;
        private LocalDateTime endTime;
        private Integer shiftIndex;
        private Integer shiftType;
        private Integer week;
        private Integer month;
        private Integer year;
        private Integer isUndefined;
        private Integer isHighPriority;
        private Long createUser;
        private Date createTime;
 
        ProductionCalendarDaytimeBuilder() {
        }
 
        public ProductionCalendarDaytimeBuilder id(final Long id) {
            this.id = id;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder calendarId(final Long calendarId) {
            this.calendarId = calendarId;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder calendarDayId(final Long calendarDayId) {
            this.calendarDayId = calendarDayId;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder calendarDate(final LocalDate calendarDate) {
            this.calendarDate = calendarDate;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder startTime(final LocalDateTime startTime) {
            this.startTime = startTime;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder endTime(final LocalDateTime endTime) {
            this.endTime = endTime;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder shiftIndex(final Integer shiftIndex) {
            this.shiftIndex = shiftIndex;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder shiftType(final Integer shiftType) {
            this.shiftType = shiftType;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder week(final Integer week) {
            this.week = week;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder month(final Integer month) {
            this.month = month;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder year(final Integer year) {
            this.year = year;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder isUndefined(final Integer isUndefined) {
            this.isUndefined = isUndefined;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder isHighPriority(final Integer isHighPriority) {
            this.isHighPriority = isHighPriority;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder createUser(final Long createUser) {
            this.createUser = createUser;
            return this;
        }
 
        public ProductionCalendarDaytimeBuilder createTime(final Date createTime) {
            this.createTime = createTime;
            return this;
        }
 
        public ProductionCalendarDaytime build() {
            return new ProductionCalendarDaytime(this.id, this.calendarId, this.calendarDayId, this.calendarDate, this.startTime, this.endTime, this.shiftIndex, this.shiftType, this.week, this.month, this.year, this.isUndefined, this.isHighPriority, this.createUser, this.createTime);
        }
 
        public String toString() {
            return "ProductionCalendarDaytime.ProductionCalendarDaytimeBuilder(id=" + this.id + ", calendarId=" + this.calendarId + ", calendarDayId=" + this.calendarDayId + ", calendarDate=" + this.calendarDate + ", startTime=" + this.startTime + ", endTime=" + this.endTime + ", shiftIndex=" + this.shiftIndex + ", shiftType=" + this.shiftType + ", week=" + this.week + ", month=" + this.month + ", year=" + this.year + ", isUndefined=" + this.isUndefined + ", isHighPriority=" + this.isHighPriority + ", createUser=" + this.createUser + ", createTime=" + this.createTime + ")";
        }
    }
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setCalendarId(final Long calendarId) {
        this.calendarId = calendarId;
    }
 
    public void setCalendarDayId(final Long calendarDayId) {
        this.calendarDayId = calendarDayId;
    }
 
    public void setCalendarDate(final LocalDate calendarDate) {
        this.calendarDate = calendarDate;
    }
 
    public void setStartTime(final LocalDateTime startTime) {
        this.startTime = startTime;
    }
 
    public void setEndTime(final LocalDateTime endTime) {
        this.endTime = endTime;
    }
 
    public void setShiftIndex(final Integer shiftIndex) {
        this.shiftIndex = shiftIndex;
    }
 
    public void setShiftType(final Integer shiftType) {
        this.shiftType = shiftType;
    }
 
    public void setWeek(final Integer week) {
        this.week = week;
    }
 
    public void setMonth(final Integer month) {
        this.month = month;
    }
 
    public void setYear(final Integer year) {
        this.year = year;
    }
 
    public void setIsUndefined(final Integer isUndefined) {
        this.isUndefined = isUndefined;
    }
 
    public void setIsHighPriority(final Integer isHighPriority) {
        this.isHighPriority = isHighPriority;
    }
 
    public void setCreateUser(final Long createUser) {
        this.createUser = createUser;
    }
 
    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof ProductionCalendarDaytime) {
            ProductionCalendarDaytime other = (ProductionCalendarDaytime) o;
            if (other.canEqual(this)) {
                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$calendarId = getCalendarId();
                Object other$calendarId = other.getCalendarId();
                if (this$calendarId == null) {
                    if (other$calendarId != null) {
                        return false;
                    }
                } else if (!this$calendarId.equals(other$calendarId)) {
                    return false;
                }
                Object this$calendarDayId = getCalendarDayId();
                Object other$calendarDayId = other.getCalendarDayId();
                if (this$calendarDayId == null) {
                    if (other$calendarDayId != null) {
                        return false;
                    }
                } else if (!this$calendarDayId.equals(other$calendarDayId)) {
                    return false;
                }
                Object this$shiftIndex = getShiftIndex();
                Object other$shiftIndex = other.getShiftIndex();
                if (this$shiftIndex == null) {
                    if (other$shiftIndex != null) {
                        return false;
                    }
                } else if (!this$shiftIndex.equals(other$shiftIndex)) {
                    return false;
                }
                Object this$shiftType = getShiftType();
                Object other$shiftType = other.getShiftType();
                if (this$shiftType == null) {
                    if (other$shiftType != null) {
                        return false;
                    }
                } else if (!this$shiftType.equals(other$shiftType)) {
                    return false;
                }
                Object this$week = getWeek();
                Object other$week = other.getWeek();
                if (this$week == null) {
                    if (other$week != null) {
                        return false;
                    }
                } else if (!this$week.equals(other$week)) {
                    return false;
                }
                Object this$month = getMonth();
                Object other$month = other.getMonth();
                if (this$month == null) {
                    if (other$month != null) {
                        return false;
                    }
                } else if (!this$month.equals(other$month)) {
                    return false;
                }
                Object this$year = getYear();
                Object other$year = other.getYear();
                if (this$year == null) {
                    if (other$year != null) {
                        return false;
                    }
                } else if (!this$year.equals(other$year)) {
                    return false;
                }
                Object this$isUndefined = getIsUndefined();
                Object other$isUndefined = other.getIsUndefined();
                if (this$isUndefined == null) {
                    if (other$isUndefined != null) {
                        return false;
                    }
                } else if (!this$isUndefined.equals(other$isUndefined)) {
                    return false;
                }
                Object this$isHighPriority = getIsHighPriority();
                Object other$isHighPriority = other.getIsHighPriority();
                if (this$isHighPriority == null) {
                    if (other$isHighPriority != null) {
                        return false;
                    }
                } else if (!this$isHighPriority.equals(other$isHighPriority)) {
                    return false;
                }
                Object this$createUser = getCreateUser();
                Object other$createUser = other.getCreateUser();
                if (this$createUser == null) {
                    if (other$createUser != null) {
                        return false;
                    }
                } else if (!this$createUser.equals(other$createUser)) {
                    return false;
                }
                Object this$calendarDate = getCalendarDate();
                Object other$calendarDate = other.getCalendarDate();
                if (this$calendarDate == null) {
                    if (other$calendarDate != null) {
                        return false;
                    }
                } else if (!this$calendarDate.equals(other$calendarDate)) {
                    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$createTime = getCreateTime();
                Object other$createTime = other.getCreateTime();
                return this$createTime == null ? other$createTime == null : this$createTime.equals(other$createTime);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof ProductionCalendarDaytime;
    }
 
    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $calendarId = getCalendarId();
        int result2 = (result * 59) + ($calendarId == null ? 43 : $calendarId.hashCode());
        Object $calendarDayId = getCalendarDayId();
        int result3 = (result2 * 59) + ($calendarDayId == null ? 43 : $calendarDayId.hashCode());
        Object $shiftIndex = getShiftIndex();
        int result4 = (result3 * 59) + ($shiftIndex == null ? 43 : $shiftIndex.hashCode());
        Object $shiftType = getShiftType();
        int result5 = (result4 * 59) + ($shiftType == null ? 43 : $shiftType.hashCode());
        Object $week = getWeek();
        int result6 = (result5 * 59) + ($week == null ? 43 : $week.hashCode());
        Object $month = getMonth();
        int result7 = (result6 * 59) + ($month == null ? 43 : $month.hashCode());
        Object $year = getYear();
        int result8 = (result7 * 59) + ($year == null ? 43 : $year.hashCode());
        Object $isUndefined = getIsUndefined();
        int result9 = (result8 * 59) + ($isUndefined == null ? 43 : $isUndefined.hashCode());
        Object $isHighPriority = getIsHighPriority();
        int result10 = (result9 * 59) + ($isHighPriority == null ? 43 : $isHighPriority.hashCode());
        Object $createUser = getCreateUser();
        int result11 = (result10 * 59) + ($createUser == null ? 43 : $createUser.hashCode());
        Object $calendarDate = getCalendarDate();
        int result12 = (result11 * 59) + ($calendarDate == null ? 43 : $calendarDate.hashCode());
        Object $startTime = getStartTime();
        int result13 = (result12 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
        Object $endTime = getEndTime();
        int result14 = (result13 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
        Object $createTime = getCreateTime();
        return (result14 * 59) + ($createTime == null ? 43 : $createTime.hashCode());
    }
 
    public String toString() {
        return "ProductionCalendarDaytime(id=" + getId() + ", calendarId=" + getCalendarId() + ", calendarDayId=" + getCalendarDayId() + ", calendarDate=" + getCalendarDate() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", shiftIndex=" + getShiftIndex() + ", shiftType=" + getShiftType() + ", week=" + getWeek() + ", month=" + getMonth() + ", year=" + getYear() + ", isUndefined=" + getIsUndefined() + ", isHighPriority=" + getIsHighPriority() + ", createUser=" + getCreateUser() + ", createTime=" + getCreateTime() + ")";
    }
 
    public static ProductionCalendarDaytimeBuilder builder() {
        return new ProductionCalendarDaytimeBuilder();
    }
 
    public ProductionCalendarDaytime() {
    }
 
    public ProductionCalendarDaytime(final Long id, final Long calendarId, final Long calendarDayId, final LocalDate calendarDate, final LocalDateTime startTime, final LocalDateTime endTime, final Integer shiftIndex, final Integer shiftType, final Integer week, final Integer month, final Integer year, final Integer isUndefined, final Integer isHighPriority, final Long createUser, final Date createTime) {
        this.id = id;
        this.calendarId = calendarId;
        this.calendarDayId = calendarDayId;
        this.calendarDate = calendarDate;
        this.startTime = startTime;
        this.endTime = endTime;
        this.shiftIndex = shiftIndex;
        this.shiftType = shiftType;
        this.week = week;
        this.month = month;
        this.year = year;
        this.isUndefined = isUndefined;
        this.isHighPriority = isHighPriority;
        this.createUser = createUser;
        this.createTime = createTime;
    }
 
    public Long getId() {
        return this.id;
    }
 
    public Long getCalendarId() {
        return this.calendarId;
    }
 
    public Long getCalendarDayId() {
        return this.calendarDayId;
    }
 
    public LocalDate getCalendarDate() {
        return this.calendarDate;
    }
 
    public LocalDateTime getStartTime() {
        return this.startTime;
    }
 
    public LocalDateTime getEndTime() {
        return this.endTime;
    }
 
    public Integer getShiftIndex() {
        return this.shiftIndex;
    }
 
    public Integer getShiftType() {
        return this.shiftType;
    }
 
    public Integer getWeek() {
        return this.week;
    }
 
    public Integer getMonth() {
        return this.month;
    }
 
    public Integer getYear() {
        return this.year;
    }
 
    public Integer getIsUndefined() {
        return this.isUndefined;
    }
 
    public Integer getIsHighPriority() {
        return this.isHighPriority;
    }
 
    public Long getCreateUser() {
        return this.createUser;
    }
 
    public Date getCreateTime() {
        return this.createTime;
    }
}