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