package com.qianwen.smartman.modules.smis.vo;
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
|
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.time.LocalDate;
|
|
@ApiModel(value = "CalendarDayVO", description = "生产日历具体日期")
|
public class CalendarDayVO implements Serializable {
|
private static final long serialVersionUID = 1599365972415762214L;
|
@ApiModelProperty(value = "主键Id", dataType = "java.lang.String")
|
private Long id;
|
@JsonSerialize(using = LocalDateSerializer.class)
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
@ApiModelProperty("班次日")
|
private LocalDate calendarDate;
|
@ApiModelProperty(value = "班次模型Id", dataType = "java.lang.String")
|
private Long modelId;
|
@ApiModelProperty("是否高优先级(0:否,1:是)")
|
private Integer isHighPriority;
|
@ApiModelProperty("班次模型名称")
|
private String modelName;
|
@ApiModelProperty("是否休息日(0:否,1:是)")
|
private Integer isOffDay;
|
@ApiModelProperty("休息日备注")
|
private String offDayRemark;
|
|
|
public static class CalendarDayVOBuilder {
|
private Long id;
|
private LocalDate calendarDate;
|
private Long modelId;
|
private Integer isHighPriority;
|
private String modelName;
|
private Integer isOffDay;
|
private String offDayRemark;
|
|
CalendarDayVOBuilder() {
|
}
|
|
public CalendarDayVOBuilder id(final Long id) {
|
this.id = id;
|
return this;
|
}
|
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
public CalendarDayVOBuilder calendarDate(final LocalDate calendarDate) {
|
this.calendarDate = calendarDate;
|
return this;
|
}
|
|
public CalendarDayVOBuilder modelId(final Long modelId) {
|
this.modelId = modelId;
|
return this;
|
}
|
|
public CalendarDayVOBuilder isHighPriority(final Integer isHighPriority) {
|
this.isHighPriority = isHighPriority;
|
return this;
|
}
|
|
public CalendarDayVOBuilder modelName(final String modelName) {
|
this.modelName = modelName;
|
return this;
|
}
|
|
public CalendarDayVOBuilder isOffDay(final Integer isOffDay) {
|
this.isOffDay = isOffDay;
|
return this;
|
}
|
|
public CalendarDayVOBuilder offDayRemark(final String offDayRemark) {
|
this.offDayRemark = offDayRemark;
|
return this;
|
}
|
|
public CalendarDayVO build() {
|
return new CalendarDayVO(this.id, this.calendarDate, this.modelId, this.isHighPriority, this.modelName, this.isOffDay, this.offDayRemark);
|
}
|
|
public String toString() {
|
return "CalendarDayVO.CalendarDayVOBuilder(id=" + this.id + ", calendarDate=" + this.calendarDate + ", modelId=" + this.modelId + ", isHighPriority=" + this.isHighPriority + ", modelName=" + this.modelName + ", isOffDay=" + this.isOffDay + ", offDayRemark=" + this.offDayRemark + ")";
|
}
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
public void setCalendarDate(final LocalDate calendarDate) {
|
this.calendarDate = calendarDate;
|
}
|
|
public void setModelId(final Long modelId) {
|
this.modelId = modelId;
|
}
|
|
public void setIsHighPriority(final Integer isHighPriority) {
|
this.isHighPriority = isHighPriority;
|
}
|
|
public void setModelName(final String modelName) {
|
this.modelName = modelName;
|
}
|
|
public void setIsOffDay(final Integer isOffDay) {
|
this.isOffDay = isOffDay;
|
}
|
|
public void setOffDayRemark(final String offDayRemark) {
|
this.offDayRemark = offDayRemark;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof CalendarDayVO) {
|
CalendarDayVO other = (CalendarDayVO) 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$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$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$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$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$modelName = getModelName();
|
Object other$modelName = other.getModelName();
|
if (this$modelName == null) {
|
if (other$modelName != null) {
|
return false;
|
}
|
} else if (!this$modelName.equals(other$modelName)) {
|
return false;
|
}
|
Object this$offDayRemark = getOffDayRemark();
|
Object other$offDayRemark = other.getOffDayRemark();
|
return this$offDayRemark == null ? other$offDayRemark == null : this$offDayRemark.equals(other$offDayRemark);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof CalendarDayVO;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $modelId = getModelId();
|
int result2 = (result * 59) + ($modelId == null ? 43 : $modelId.hashCode());
|
Object $isHighPriority = getIsHighPriority();
|
int result3 = (result2 * 59) + ($isHighPriority == null ? 43 : $isHighPriority.hashCode());
|
Object $isOffDay = getIsOffDay();
|
int result4 = (result3 * 59) + ($isOffDay == null ? 43 : $isOffDay.hashCode());
|
Object $calendarDate = getCalendarDate();
|
int result5 = (result4 * 59) + ($calendarDate == null ? 43 : $calendarDate.hashCode());
|
Object $modelName = getModelName();
|
int result6 = (result5 * 59) + ($modelName == null ? 43 : $modelName.hashCode());
|
Object $offDayRemark = getOffDayRemark();
|
return (result6 * 59) + ($offDayRemark == null ? 43 : $offDayRemark.hashCode());
|
}
|
|
public String toString() {
|
return "CalendarDayVO(id=" + getId() + ", calendarDate=" + getCalendarDate() + ", modelId=" + getModelId() + ", isHighPriority=" + getIsHighPriority() + ", modelName=" + getModelName() + ", isOffDay=" + getIsOffDay() + ", offDayRemark=" + getOffDayRemark() + ")";
|
}
|
|
public static CalendarDayVOBuilder builder() {
|
return new CalendarDayVOBuilder();
|
}
|
|
public CalendarDayVO() {
|
}
|
|
public CalendarDayVO(final Long id, final LocalDate calendarDate, final Long modelId, final Integer isHighPriority, final String modelName, final Integer isOffDay, final String offDayRemark) {
|
this.id = id;
|
this.calendarDate = calendarDate;
|
this.modelId = modelId;
|
this.isHighPriority = isHighPriority;
|
this.modelName = modelName;
|
this.isOffDay = isOffDay;
|
this.offDayRemark = offDayRemark;
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public LocalDate getCalendarDate() {
|
return this.calendarDate;
|
}
|
|
public Long getModelId() {
|
return this.modelId;
|
}
|
|
public Integer getIsHighPriority() {
|
return this.isHighPriority;
|
}
|
|
public String getModelName() {
|
return this.modelName;
|
}
|
|
public Integer getIsOffDay() {
|
return this.isOffDay;
|
}
|
|
public String getOffDayRemark() {
|
return this.offDayRemark;
|
}
|
}
|