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.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.List;
|
|
@ApiModel(value = "ShiftVO", description = "班次模型VO")
|
public class ShiftVO implements Serializable {
|
private static final long serialVersionUID = 5603228770966197778L;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("主键")
|
private Long id;
|
@ApiModelProperty("班次数量")
|
private Integer shiftNumber;
|
@ApiModelProperty("班次编号")
|
private String code;
|
@ApiModelProperty("是否被使用(0:否,1:是)")
|
private Integer isUsed;
|
@ApiModelProperty("班次名称")
|
private String name;
|
@ApiModelProperty("班次颜色")
|
private String colour;
|
@ApiModelProperty("班次日开始时间")
|
private Integer startTime;
|
@ApiModelProperty("班次日结束时间")
|
private Integer endTime;
|
@ApiModelProperty("班次时间")
|
private List<ShiftDetailVO> shiftDetailVOList;
|
|
|
public static class ShiftVOBuilder {
|
private Long id;
|
private Integer shiftNumber;
|
private String code;
|
private Integer isUsed;
|
private String name;
|
private String colour;
|
private Integer startTime;
|
private Integer endTime;
|
private List<ShiftDetailVO> shiftDetailVOList;
|
|
ShiftVOBuilder() {
|
}
|
|
public ShiftVOBuilder id(final Long id) {
|
this.id = id;
|
return this;
|
}
|
|
public ShiftVOBuilder shiftNumber(final Integer shiftNumber) {
|
this.shiftNumber = shiftNumber;
|
return this;
|
}
|
|
public ShiftVOBuilder code(final String code) {
|
this.code = code;
|
return this;
|
}
|
|
public ShiftVOBuilder isUsed(final Integer isUsed) {
|
this.isUsed = isUsed;
|
return this;
|
}
|
|
public ShiftVOBuilder name(final String name) {
|
this.name = name;
|
return this;
|
}
|
|
public ShiftVOBuilder colour(final String colour) {
|
this.colour = colour;
|
return this;
|
}
|
|
public ShiftVOBuilder startTime(final Integer startTime) {
|
this.startTime = startTime;
|
return this;
|
}
|
|
public ShiftVOBuilder endTime(final Integer endTime) {
|
this.endTime = endTime;
|
return this;
|
}
|
|
public ShiftVOBuilder shiftDetailVOList(final List<ShiftDetailVO> shiftDetailVOList) {
|
this.shiftDetailVOList = shiftDetailVOList;
|
return this;
|
}
|
|
public ShiftVO build() {
|
return new ShiftVO(this.id, this.shiftNumber, this.code, this.isUsed, this.name, this.colour, this.startTime, this.endTime, this.shiftDetailVOList);
|
}
|
|
public String toString() {
|
return "ShiftVO.ShiftVOBuilder(id=" + this.id + ", shiftNumber=" + this.shiftNumber + ", code=" + this.code + ", isUsed=" + this.isUsed + ", name=" + this.name + ", colour=" + this.colour + ", startTime=" + this.startTime + ", endTime=" + this.endTime + ", shiftDetailVOList=" + this.shiftDetailVOList + ")";
|
}
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setShiftNumber(final Integer shiftNumber) {
|
this.shiftNumber = shiftNumber;
|
}
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setIsUsed(final Integer isUsed) {
|
this.isUsed = isUsed;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setColour(final String colour) {
|
this.colour = colour;
|
}
|
|
public void setStartTime(final Integer startTime) {
|
this.startTime = startTime;
|
}
|
|
public void setEndTime(final Integer endTime) {
|
this.endTime = endTime;
|
}
|
|
public void setShiftDetailVOList(final List<ShiftDetailVO> shiftDetailVOList) {
|
this.shiftDetailVOList = shiftDetailVOList;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ShiftVO) {
|
ShiftVO other = (ShiftVO) 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$isUsed = getIsUsed();
|
Object other$isUsed = other.getIsUsed();
|
if (this$isUsed == null) {
|
if (other$isUsed != null) {
|
return false;
|
}
|
} else if (!this$isUsed.equals(other$isUsed)) {
|
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$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$name = getName();
|
Object other$name = other.getName();
|
if (this$name == null) {
|
if (other$name != null) {
|
return false;
|
}
|
} else if (!this$name.equals(other$name)) {
|
return false;
|
}
|
Object this$colour = getColour();
|
Object other$colour = other.getColour();
|
if (this$colour == null) {
|
if (other$colour != null) {
|
return false;
|
}
|
} else if (!this$colour.equals(other$colour)) {
|
return false;
|
}
|
Object this$shiftDetailVOList = getShiftDetailVOList();
|
Object other$shiftDetailVOList = other.getShiftDetailVOList();
|
return this$shiftDetailVOList == null ? other$shiftDetailVOList == null : this$shiftDetailVOList.equals(other$shiftDetailVOList);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ShiftVO;
|
}
|
|
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 $isUsed = getIsUsed();
|
int result3 = (result2 * 59) + ($isUsed == null ? 43 : $isUsed.hashCode());
|
Object $startTime = getStartTime();
|
int result4 = (result3 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
|
Object $endTime = getEndTime();
|
int result5 = (result4 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
|
Object $code = getCode();
|
int result6 = (result5 * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $name = getName();
|
int result7 = (result6 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $colour = getColour();
|
int result8 = (result7 * 59) + ($colour == null ? 43 : $colour.hashCode());
|
Object $shiftDetailVOList = getShiftDetailVOList();
|
return (result8 * 59) + ($shiftDetailVOList == null ? 43 : $shiftDetailVOList.hashCode());
|
}
|
|
public String toString() {
|
return "ShiftVO(id=" + getId() + ", shiftNumber=" + getShiftNumber() + ", code=" + getCode() + ", isUsed=" + getIsUsed() + ", name=" + getName() + ", colour=" + getColour() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", shiftDetailVOList=" + getShiftDetailVOList() + ")";
|
}
|
|
public static ShiftVOBuilder builder() {
|
return new ShiftVOBuilder();
|
}
|
|
public ShiftVO(final Long id, final Integer shiftNumber, final String code, final Integer isUsed, final String name, final String colour, final Integer startTime, final Integer endTime, final List<ShiftDetailVO> shiftDetailVOList) {
|
this.id = id;
|
this.shiftNumber = shiftNumber;
|
this.code = code;
|
this.isUsed = isUsed;
|
this.name = name;
|
this.colour = colour;
|
this.startTime = startTime;
|
this.endTime = endTime;
|
this.shiftDetailVOList = shiftDetailVOList;
|
}
|
|
public ShiftVO() {
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Integer getShiftNumber() {
|
return this.shiftNumber;
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public Integer getIsUsed() {
|
return this.isUsed;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getColour() {
|
return this.colour;
|
}
|
|
public Integer getStartTime() {
|
return this.startTime;
|
}
|
|
public Integer getEndTime() {
|
return this.endTime;
|
}
|
|
public List<ShiftDetailVO> getShiftDetailVOList() {
|
return this.shiftDetailVOList;
|
}
|
}
|