package com.qianwen.smartman.modules.smis.vo;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.List;
|
import com.qianwen.smartman.modules.smis.dto.ShiftDetailDTO;
|
|
public class ShiftUpdateVO implements Serializable {
|
private static final long serialVersionUID = 1;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("主键")
|
private Long id;
|
@ApiModelProperty("班次数量")
|
private Integer shiftNumber;
|
@ApiModelProperty("班制名称")
|
private String name;
|
@ApiModelProperty("班制颜色")
|
private String colour;
|
|
@ApiModelProperty("班次日开始时间")
|
private Integer startTime;
|
@ApiModelProperty("班次日结束时间")
|
private Integer endTime;
|
@ApiModelProperty("班次时间")
|
private List<ShiftDetailDTO> shiftDetailDTOList;
|
|
|
public static class ShiftUpdateVOBuilder {
|
private Long id;
|
private Integer shiftNumber;
|
private Integer startTime;
|
private Integer endTime;
|
private List<ShiftDetailDTO> shiftDetailDTOList;
|
|
ShiftUpdateVOBuilder() {
|
}
|
|
public ShiftUpdateVOBuilder id(final Long id) {
|
this.id = id;
|
return this;
|
}
|
|
public ShiftUpdateVOBuilder shiftNumber(final Integer shiftNumber) {
|
this.shiftNumber = shiftNumber;
|
return this;
|
}
|
|
public ShiftUpdateVOBuilder startTime(final Integer startTime) {
|
this.startTime = startTime;
|
return this;
|
}
|
|
public ShiftUpdateVOBuilder endTime(final Integer endTime) {
|
this.endTime = endTime;
|
return this;
|
}
|
|
public ShiftUpdateVOBuilder shiftDetailDTOList(final List<ShiftDetailDTO> shiftDetailDTOList) {
|
this.shiftDetailDTOList = shiftDetailDTOList;
|
return this;
|
}
|
|
public ShiftUpdateVO build() {
|
return new ShiftUpdateVO(this.id, this.shiftNumber, this.startTime, this.endTime, this.shiftDetailDTOList);
|
}
|
|
public String toString() {
|
return "ShiftUpdateVO.ShiftUpdateVOBuilder(id=" + this.id + ", shiftNumber=" + this.shiftNumber + ", startTime=" + this.startTime + ", endTime=" + this.endTime + ", shiftDetailDTOList=" + this.shiftDetailDTOList + ")";
|
}
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setShiftNumber(final Integer shiftNumber) {
|
this.shiftNumber = shiftNumber;
|
}
|
|
public void setStartTime(final Integer startTime) {
|
this.startTime = startTime;
|
}
|
|
public void setEndTime(final Integer endTime) {
|
this.endTime = endTime;
|
}
|
|
public void setShiftDetailDTOList(final List<ShiftDetailDTO> shiftDetailDTOList) {
|
this.shiftDetailDTOList = shiftDetailDTOList;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ShiftUpdateVO) {
|
ShiftUpdateVO other = (ShiftUpdateVO) 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$shiftNumber = getShiftNumber();
|
Object other$shiftNumber = other.getShiftNumber();
|
if (this$shiftNumber == null) {
|
if (other$shiftNumber != null) {
|
return false;
|
}
|
} else if (!this$shiftNumber.equals(other$shiftNumber)) {
|
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$shiftDetailDTOList = getShiftDetailDTOList();
|
Object other$shiftDetailDTOList = other.getShiftDetailDTOList();
|
return this$shiftDetailDTOList == null ? other$shiftDetailDTOList == null : this$shiftDetailDTOList.equals(other$shiftDetailDTOList);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ShiftUpdateVO;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $shiftNumber = getShiftNumber();
|
int result2 = (result * 59) + ($shiftNumber == null ? 43 : $shiftNumber.hashCode());
|
Object $startTime = getStartTime();
|
int result3 = (result2 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
|
Object $endTime = getEndTime();
|
int result4 = (result3 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
|
Object $shiftDetailDTOList = getShiftDetailDTOList();
|
return (result4 * 59) + ($shiftDetailDTOList == null ? 43 : $shiftDetailDTOList.hashCode());
|
}
|
|
public String toString() {
|
return "ShiftUpdateVO(id=" + getId() + ", shiftNumber=" + getShiftNumber() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", shiftDetailDTOList=" + getShiftDetailDTOList() + ")";
|
}
|
|
public static ShiftUpdateVOBuilder builder() {
|
return new ShiftUpdateVOBuilder();
|
}
|
|
public ShiftUpdateVO(final Long id, final Integer shiftNumber, final Integer startTime, final Integer endTime, final List<ShiftDetailDTO> shiftDetailDTOList) {
|
this.id = id;
|
this.shiftNumber = shiftNumber;
|
this.startTime = startTime;
|
this.endTime = endTime;
|
this.shiftDetailDTOList = shiftDetailDTOList;
|
}
|
|
public ShiftUpdateVO() {
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Integer getShiftNumber() {
|
return this.shiftNumber;
|
}
|
|
public Integer getStartTime() {
|
return this.startTime;
|
}
|
|
public Integer getEndTime() {
|
return this.endTime;
|
}
|
|
public List<ShiftDetailDTO> getShiftDetailDTOList() {
|
return this.shiftDetailDTOList;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public String getColour() {
|
return colour;
|
}
|
|
public void setColour(String colour) {
|
this.colour = colour;
|
}
|
|
}
|