yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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
package com.qianwen.smartman.modules.cps.dto;
 
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDate;
import javax.validation.constraints.NotNull;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/dto/CalendarDateDTO.class */
public class CalendarDateDTO implements Serializable {
    private static final long serialVersionUID = 1;
    @JsonDeserialize(using = LocalDateDeserializer.class)
    @ApiModelProperty("生产日历日期")
    private LocalDate calendarDate;
    @ApiModelProperty("是否高优先级(0:否,1:是)")
    private Integer isHighPriority;
    @NotNull(message = "shift model cannot be empty")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("班次模型Id")
    private Long modelId;
    @ApiModelProperty("是否休息日(0:否,1:是)")
    private Integer isOffDay;
    @ApiModelProperty(value = "休息日id", dataType = "java.lang.String")
    private Long offDayId;
 
    /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/dto/CalendarDateDTO$CalendarDateDTOBuilder.class */
    public static class CalendarDateDTOBuilder {
        private LocalDate calendarDate;
        private Integer isHighPriority;
        private Long modelId;
        private Integer isOffDay;
        private Long offDayId;
 
        CalendarDateDTOBuilder() {
        }
 
        @JsonDeserialize(using = LocalDateDeserializer.class)
        public CalendarDateDTOBuilder calendarDate(final LocalDate calendarDate) {
            this.calendarDate = calendarDate;
            return this;
        }
 
        public CalendarDateDTOBuilder isHighPriority(final Integer isHighPriority) {
            this.isHighPriority = isHighPriority;
            return this;
        }
 
        public CalendarDateDTOBuilder modelId(final Long modelId) {
            this.modelId = modelId;
            return this;
        }
 
        public CalendarDateDTOBuilder isOffDay(final Integer isOffDay) {
            this.isOffDay = isOffDay;
            return this;
        }
 
        public CalendarDateDTOBuilder offDayId(final Long offDayId) {
            this.offDayId = offDayId;
            return this;
        }
 
        public CalendarDateDTO build() {
            return new CalendarDateDTO(this.calendarDate, this.isHighPriority, this.modelId, this.isOffDay, this.offDayId);
        }
 
        public String toString() {
            return "CalendarDateDTO.CalendarDateDTOBuilder(calendarDate=" + this.calendarDate + ", isHighPriority=" + this.isHighPriority + ", modelId=" + this.modelId + ", isOffDay=" + this.isOffDay + ", offDayId=" + this.offDayId + ")";
        }
    }
 
    @JsonDeserialize(using = LocalDateDeserializer.class)
    public void setCalendarDate(final LocalDate calendarDate) {
        this.calendarDate = calendarDate;
    }
 
    public void setIsHighPriority(final Integer isHighPriority) {
        this.isHighPriority = isHighPriority;
    }
 
    public void setModelId(final Long modelId) {
        this.modelId = modelId;
    }
 
    public void setIsOffDay(final Integer isOffDay) {
        this.isOffDay = isOffDay;
    }
 
    public void setOffDayId(final Long offDayId) {
        this.offDayId = offDayId;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof CalendarDateDTO) {
            CalendarDateDTO other = (CalendarDateDTO) o;
            if (other.canEqual(this)) {
                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$modelId = getModelId();
                Object other$modelId = other.getModelId();
                if (this$modelId == null) {
                    if (other$modelId != null) {
                        return false;
                    }
                } else if (!this$modelId.equals(other$modelId)) {
                    return false;
                }
                Object this$isOffDay = getIsOffDay();
                Object other$isOffDay = other.getIsOffDay();
                if (this$isOffDay == null) {
                    if (other$isOffDay != null) {
                        return false;
                    }
                } else if (!this$isOffDay.equals(other$isOffDay)) {
                    return false;
                }
                Object this$offDayId = getOffDayId();
                Object other$offDayId = other.getOffDayId();
                if (this$offDayId == null) {
                    if (other$offDayId != null) {
                        return false;
                    }
                } else if (!this$offDayId.equals(other$offDayId)) {
                    return false;
                }
                Object this$calendarDate = getCalendarDate();
                Object other$calendarDate = other.getCalendarDate();
                return this$calendarDate == null ? other$calendarDate == null : this$calendarDate.equals(other$calendarDate);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof CalendarDateDTO;
    }
 
    public int hashCode() {
        Object $isHighPriority = getIsHighPriority();
        int result = (1 * 59) + ($isHighPriority == null ? 43 : $isHighPriority.hashCode());
        Object $modelId = getModelId();
        int result2 = (result * 59) + ($modelId == null ? 43 : $modelId.hashCode());
        Object $isOffDay = getIsOffDay();
        int result3 = (result2 * 59) + ($isOffDay == null ? 43 : $isOffDay.hashCode());
        Object $offDayId = getOffDayId();
        int result4 = (result3 * 59) + ($offDayId == null ? 43 : $offDayId.hashCode());
        Object $calendarDate = getCalendarDate();
        return (result4 * 59) + ($calendarDate == null ? 43 : $calendarDate.hashCode());
    }
 
    public String toString() {
        return "CalendarDateDTO(calendarDate=" + getCalendarDate() + ", isHighPriority=" + getIsHighPriority() + ", modelId=" + getModelId() + ", isOffDay=" + getIsOffDay() + ", offDayId=" + getOffDayId() + ")";
    }
 
    public static CalendarDateDTOBuilder builder() {
        return new CalendarDateDTOBuilder();
    }
 
    public CalendarDateDTO(final LocalDate calendarDate, final Integer isHighPriority, final Long modelId, final Integer isOffDay, final Long offDayId) {
        this.calendarDate = calendarDate;
        this.isHighPriority = isHighPriority;
        this.modelId = modelId;
        this.isOffDay = isOffDay;
        this.offDayId = offDayId;
    }
 
    public CalendarDateDTO() {
    }
 
    public LocalDate getCalendarDate() {
        return this.calendarDate;
    }
 
    public Integer getIsHighPriority() {
        return this.isHighPriority;
    }
 
    public Long getModelId() {
        return this.modelId;
    }
 
    public Integer getIsOffDay() {
        return this.isOffDay;
    }
 
    public Long getOffDayId() {
        return this.offDayId;
    }
}