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;
|
}
|
}
|