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.TableLogic;
|
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;
|
|
@ApiModel(value = "班次日entity", description = "班次日entity")
|
@TableName("blade_production_calendar_day")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/ProductionCalendarDay.class */
|
public class ProductionCalendarDay implements Serializable {
|
private static final long serialVersionUID = 6935830020987594867L;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("主键")
|
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
private Long id;
|
@ApiModelProperty("生产日历id")
|
private Long calendarId;
|
@ApiModelProperty("生产日历日期")
|
private LocalDate calendarDate;
|
@ApiModelProperty("班次日开始时间")
|
private LocalDateTime startTime;
|
@ApiModelProperty("班次日结束时间")
|
private LocalDateTime endTime;
|
@ApiModelProperty("属于第几周")
|
private Integer week;
|
@ApiModelProperty("属于第几月")
|
private Integer month;
|
@ApiModelProperty("属于第几年")
|
private Integer year;
|
@ApiModelProperty("班次模型Id")
|
private Long modelId;
|
@ApiModelProperty("是否高优先级")
|
private Integer isHighPriority;
|
@ApiModelProperty("是否是休息日(0:否,1:是)")
|
private Integer isOffDay;
|
@ApiModelProperty("休息日Id")
|
private Long offId;
|
@TableLogic
|
@TableField(value = "is_deleted", fill = FieldFill.INSERT)
|
private boolean isDeleted;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/ProductionCalendarDay$ProductionCalendarDayBuilder.class */
|
public static class ProductionCalendarDayBuilder {
|
private Long id;
|
private Long calendarId;
|
private LocalDate calendarDate;
|
private LocalDateTime startTime;
|
private LocalDateTime endTime;
|
private Integer week;
|
private Integer month;
|
private Integer year;
|
private Long modelId;
|
private Integer isHighPriority;
|
private Integer isOffDay;
|
private Long offId;
|
private boolean isDeleted;
|
|
ProductionCalendarDayBuilder() {
|
}
|
|
public ProductionCalendarDayBuilder id(final Long id) {
|
this.id = id;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder calendarId(final Long calendarId) {
|
this.calendarId = calendarId;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder calendarDate(final LocalDate calendarDate) {
|
this.calendarDate = calendarDate;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder startTime(final LocalDateTime startTime) {
|
this.startTime = startTime;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder endTime(final LocalDateTime endTime) {
|
this.endTime = endTime;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder week(final Integer week) {
|
this.week = week;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder month(final Integer month) {
|
this.month = month;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder year(final Integer year) {
|
this.year = year;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder modelId(final Long modelId) {
|
this.modelId = modelId;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder isHighPriority(final Integer isHighPriority) {
|
this.isHighPriority = isHighPriority;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder isOffDay(final Integer isOffDay) {
|
this.isOffDay = isOffDay;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder offId(final Long offId) {
|
this.offId = offId;
|
return this;
|
}
|
|
public ProductionCalendarDayBuilder isDeleted(final boolean isDeleted) {
|
this.isDeleted = isDeleted;
|
return this;
|
}
|
|
public ProductionCalendarDay build() {
|
return new ProductionCalendarDay(this.id, this.calendarId, this.calendarDate, this.startTime, this.endTime, this.week, this.month, this.year, this.modelId, this.isHighPriority, this.isOffDay, this.offId, this.isDeleted);
|
}
|
|
public String toString() {
|
return "ProductionCalendarDay.ProductionCalendarDayBuilder(id=" + this.id + ", calendarId=" + this.calendarId + ", calendarDate=" + this.calendarDate + ", startTime=" + this.startTime + ", endTime=" + this.endTime + ", week=" + this.week + ", month=" + this.month + ", year=" + this.year + ", modelId=" + this.modelId + ", isHighPriority=" + this.isHighPriority + ", isOffDay=" + this.isOffDay + ", offId=" + this.offId + ", isDeleted=" + this.isDeleted + ")";
|
}
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setCalendarId(final Long calendarId) {
|
this.calendarId = calendarId;
|
}
|
|
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 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 setModelId(final Long modelId) {
|
this.modelId = modelId;
|
}
|
|
public void setIsHighPriority(final Integer isHighPriority) {
|
this.isHighPriority = isHighPriority;
|
}
|
|
public void setIsOffDay(final Integer isOffDay) {
|
this.isOffDay = isOffDay;
|
}
|
|
public void setOffId(final Long offId) {
|
this.offId = offId;
|
}
|
|
public void setDeleted(final boolean isDeleted) {
|
this.isDeleted = isDeleted;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ProductionCalendarDay) {
|
ProductionCalendarDay other = (ProductionCalendarDay) o;
|
if (other.canEqual(this) && isDeleted() == other.isDeleted()) {
|
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$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$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$offId = getOffId();
|
Object other$offId = other.getOffId();
|
if (this$offId == null) {
|
if (other$offId != null) {
|
return false;
|
}
|
} else if (!this$offId.equals(other$offId)) {
|
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();
|
return this$endTime == null ? other$endTime == null : this$endTime.equals(other$endTime);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ProductionCalendarDay;
|
}
|
|
public int hashCode() {
|
int result = (1 * 59) + (isDeleted() ? 79 : 97);
|
Object $id = getId();
|
int result2 = (result * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $calendarId = getCalendarId();
|
int result3 = (result2 * 59) + ($calendarId == null ? 43 : $calendarId.hashCode());
|
Object $week = getWeek();
|
int result4 = (result3 * 59) + ($week == null ? 43 : $week.hashCode());
|
Object $month = getMonth();
|
int result5 = (result4 * 59) + ($month == null ? 43 : $month.hashCode());
|
Object $year = getYear();
|
int result6 = (result5 * 59) + ($year == null ? 43 : $year.hashCode());
|
Object $modelId = getModelId();
|
int result7 = (result6 * 59) + ($modelId == null ? 43 : $modelId.hashCode());
|
Object $isHighPriority = getIsHighPriority();
|
int result8 = (result7 * 59) + ($isHighPriority == null ? 43 : $isHighPriority.hashCode());
|
Object $isOffDay = getIsOffDay();
|
int result9 = (result8 * 59) + ($isOffDay == null ? 43 : $isOffDay.hashCode());
|
Object $offId = getOffId();
|
int result10 = (result9 * 59) + ($offId == null ? 43 : $offId.hashCode());
|
Object $calendarDate = getCalendarDate();
|
int result11 = (result10 * 59) + ($calendarDate == null ? 43 : $calendarDate.hashCode());
|
Object $startTime = getStartTime();
|
int result12 = (result11 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
|
Object $endTime = getEndTime();
|
return (result12 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
|
}
|
|
public String toString() {
|
return "ProductionCalendarDay(id=" + getId() + ", calendarId=" + getCalendarId() + ", calendarDate=" + getCalendarDate() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", week=" + getWeek() + ", month=" + getMonth() + ", year=" + getYear() + ", modelId=" + getModelId() + ", isHighPriority=" + getIsHighPriority() + ", isOffDay=" + getIsOffDay() + ", offId=" + getOffId() + ", isDeleted=" + isDeleted() + ")";
|
}
|
|
public static ProductionCalendarDayBuilder builder() {
|
return new ProductionCalendarDayBuilder();
|
}
|
|
public ProductionCalendarDay() {
|
}
|
|
public ProductionCalendarDay(final Long id, final Long calendarId, final LocalDate calendarDate, final LocalDateTime startTime, final LocalDateTime endTime, final Integer week, final Integer month, final Integer year, final Long modelId, final Integer isHighPriority, final Integer isOffDay, final Long offId, final boolean isDeleted) {
|
this.id = id;
|
this.calendarId = calendarId;
|
this.calendarDate = calendarDate;
|
this.startTime = startTime;
|
this.endTime = endTime;
|
this.week = week;
|
this.month = month;
|
this.year = year;
|
this.modelId = modelId;
|
this.isHighPriority = isHighPriority;
|
this.isOffDay = isOffDay;
|
this.offId = offId;
|
this.isDeleted = isDeleted;
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Long getCalendarId() {
|
return this.calendarId;
|
}
|
|
public LocalDate getCalendarDate() {
|
return this.calendarDate;
|
}
|
|
public LocalDateTime getStartTime() {
|
return this.startTime;
|
}
|
|
public LocalDateTime getEndTime() {
|
return this.endTime;
|
}
|
|
public Integer getWeek() {
|
return this.week;
|
}
|
|
public Integer getMonth() {
|
return this.month;
|
}
|
|
public Integer getYear() {
|
return this.year;
|
}
|
|
public Long getModelId() {
|
return this.modelId;
|
}
|
|
public Integer getIsHighPriority() {
|
return this.isHighPriority;
|
}
|
|
public Integer getIsOffDay() {
|
return this.isOffDay;
|
}
|
|
public Long getOffId() {
|
return this.offId;
|
}
|
|
public boolean isDeleted() {
|
return this.isDeleted;
|
}
|
}
|