package com.qianwen.smartman.modules.trace.vo;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.Date;
|
import com.qianwen.smartman.common.constant.DateConstant;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
public class WorkpieceTraceVO implements Serializable {
|
private static final long serialVersionUID = 6753954877213102744L;
|
@ApiModelProperty(value = "流程记录Id", dataType = "java.lang.String")
|
private Long recordId;
|
@ApiModelProperty(value = "上线记录Id", dataType = "java.lang.String")
|
private Long traceId;
|
@ApiModelProperty("工件编号")
|
private String partNo;
|
@ApiModelProperty("批次号")
|
private String batchNumber;
|
@ApiModelProperty(value = "工位id", dataType = "java.lang.String")
|
private Long workstationId;
|
@ApiModelProperty("工位编号")
|
private String workstationCode;
|
@ApiModelProperty("工位名称")
|
private String workstationName;
|
@ApiModelProperty(value = "工作台Id", dataType = "java.lang.String")
|
private Long workbenchId;
|
@ApiModelProperty("工作台名称")
|
private String workbenchName;
|
@ApiModelProperty("班次名称")
|
private String shiftIndexName;
|
@ApiModelProperty("工件状态")
|
private Integer traceStatus;
|
@DateTimeFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@ApiModelProperty("上线时间")
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
private Date onlineTime;
|
@DateTimeFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@ApiModelProperty("下线时间")
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
private Date offlineTime;
|
|
public void setRecordId(final Long recordId) {
|
this.recordId = recordId;
|
}
|
|
public void setTraceId(final Long traceId) {
|
this.traceId = traceId;
|
}
|
|
public void setPartNo(final String partNo) {
|
this.partNo = partNo;
|
}
|
|
public void setBatchNumber(final String batchNumber) {
|
this.batchNumber = batchNumber;
|
}
|
|
public void setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
}
|
|
public void setWorkstationCode(final String workstationCode) {
|
this.workstationCode = workstationCode;
|
}
|
|
public void setWorkstationName(final String workstationName) {
|
this.workstationName = workstationName;
|
}
|
|
public void setWorkbenchId(final Long workbenchId) {
|
this.workbenchId = workbenchId;
|
}
|
|
public void setWorkbenchName(final String workbenchName) {
|
this.workbenchName = workbenchName;
|
}
|
|
public void setShiftIndexName(final String shiftIndexName) {
|
this.shiftIndexName = shiftIndexName;
|
}
|
|
public void setTraceStatus(final Integer traceStatus) {
|
this.traceStatus = traceStatus;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public void setOnlineTime(final Date onlineTime) {
|
this.onlineTime = onlineTime;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public void setOfflineTime(final Date offlineTime) {
|
this.offlineTime = offlineTime;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof WorkpieceTraceVO) {
|
WorkpieceTraceVO other = (WorkpieceTraceVO) o;
|
if (other.canEqual(this)) {
|
Object this$recordId = getRecordId();
|
Object other$recordId = other.getRecordId();
|
if (this$recordId == null) {
|
if (other$recordId != null) {
|
return false;
|
}
|
} else if (!this$recordId.equals(other$recordId)) {
|
return false;
|
}
|
Object this$traceId = getTraceId();
|
Object other$traceId = other.getTraceId();
|
if (this$traceId == null) {
|
if (other$traceId != null) {
|
return false;
|
}
|
} else if (!this$traceId.equals(other$traceId)) {
|
return false;
|
}
|
Object this$workstationId = getWorkstationId();
|
Object other$workstationId = other.getWorkstationId();
|
if (this$workstationId == null) {
|
if (other$workstationId != null) {
|
return false;
|
}
|
} else if (!this$workstationId.equals(other$workstationId)) {
|
return false;
|
}
|
Object this$workbenchId = getWorkbenchId();
|
Object other$workbenchId = other.getWorkbenchId();
|
if (this$workbenchId == null) {
|
if (other$workbenchId != null) {
|
return false;
|
}
|
} else if (!this$workbenchId.equals(other$workbenchId)) {
|
return false;
|
}
|
Object this$traceStatus = getTraceStatus();
|
Object other$traceStatus = other.getTraceStatus();
|
if (this$traceStatus == null) {
|
if (other$traceStatus != null) {
|
return false;
|
}
|
} else if (!this$traceStatus.equals(other$traceStatus)) {
|
return false;
|
}
|
Object this$partNo = getPartNo();
|
Object other$partNo = other.getPartNo();
|
if (this$partNo == null) {
|
if (other$partNo != null) {
|
return false;
|
}
|
} else if (!this$partNo.equals(other$partNo)) {
|
return false;
|
}
|
Object this$batchNumber = getBatchNumber();
|
Object other$batchNumber = other.getBatchNumber();
|
if (this$batchNumber == null) {
|
if (other$batchNumber != null) {
|
return false;
|
}
|
} else if (!this$batchNumber.equals(other$batchNumber)) {
|
return false;
|
}
|
Object this$workstationCode = getWorkstationCode();
|
Object other$workstationCode = other.getWorkstationCode();
|
if (this$workstationCode == null) {
|
if (other$workstationCode != null) {
|
return false;
|
}
|
} else if (!this$workstationCode.equals(other$workstationCode)) {
|
return false;
|
}
|
Object this$workstationName = getWorkstationName();
|
Object other$workstationName = other.getWorkstationName();
|
if (this$workstationName == null) {
|
if (other$workstationName != null) {
|
return false;
|
}
|
} else if (!this$workstationName.equals(other$workstationName)) {
|
return false;
|
}
|
Object this$workbenchName = getWorkbenchName();
|
Object other$workbenchName = other.getWorkbenchName();
|
if (this$workbenchName == null) {
|
if (other$workbenchName != null) {
|
return false;
|
}
|
} else if (!this$workbenchName.equals(other$workbenchName)) {
|
return false;
|
}
|
Object this$shiftIndexName = getShiftIndexName();
|
Object other$shiftIndexName = other.getShiftIndexName();
|
if (this$shiftIndexName == null) {
|
if (other$shiftIndexName != null) {
|
return false;
|
}
|
} else if (!this$shiftIndexName.equals(other$shiftIndexName)) {
|
return false;
|
}
|
Object this$onlineTime = getOnlineTime();
|
Object other$onlineTime = other.getOnlineTime();
|
if (this$onlineTime == null) {
|
if (other$onlineTime != null) {
|
return false;
|
}
|
} else if (!this$onlineTime.equals(other$onlineTime)) {
|
return false;
|
}
|
Object this$offlineTime = getOfflineTime();
|
Object other$offlineTime = other.getOfflineTime();
|
return this$offlineTime == null ? other$offlineTime == null : this$offlineTime.equals(other$offlineTime);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof WorkpieceTraceVO;
|
}
|
|
public int hashCode() {
|
Object $recordId = getRecordId();
|
int result = (1 * 59) + ($recordId == null ? 43 : $recordId.hashCode());
|
Object $traceId = getTraceId();
|
int result2 = (result * 59) + ($traceId == null ? 43 : $traceId.hashCode());
|
Object $workstationId = getWorkstationId();
|
int result3 = (result2 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $workbenchId = getWorkbenchId();
|
int result4 = (result3 * 59) + ($workbenchId == null ? 43 : $workbenchId.hashCode());
|
Object $traceStatus = getTraceStatus();
|
int result5 = (result4 * 59) + ($traceStatus == null ? 43 : $traceStatus.hashCode());
|
Object $partNo = getPartNo();
|
int result6 = (result5 * 59) + ($partNo == null ? 43 : $partNo.hashCode());
|
Object $batchNumber = getBatchNumber();
|
int result7 = (result6 * 59) + ($batchNumber == null ? 43 : $batchNumber.hashCode());
|
Object $workstationCode = getWorkstationCode();
|
int result8 = (result7 * 59) + ($workstationCode == null ? 43 : $workstationCode.hashCode());
|
Object $workstationName = getWorkstationName();
|
int result9 = (result8 * 59) + ($workstationName == null ? 43 : $workstationName.hashCode());
|
Object $workbenchName = getWorkbenchName();
|
int result10 = (result9 * 59) + ($workbenchName == null ? 43 : $workbenchName.hashCode());
|
Object $shiftIndexName = getShiftIndexName();
|
int result11 = (result10 * 59) + ($shiftIndexName == null ? 43 : $shiftIndexName.hashCode());
|
Object $onlineTime = getOnlineTime();
|
int result12 = (result11 * 59) + ($onlineTime == null ? 43 : $onlineTime.hashCode());
|
Object $offlineTime = getOfflineTime();
|
return (result12 * 59) + ($offlineTime == null ? 43 : $offlineTime.hashCode());
|
}
|
|
public String toString() {
|
return "WorkpieceTraceVO(recordId=" + getRecordId() + ", traceId=" + getTraceId() + ", partNo=" + getPartNo() + ", batchNumber=" + getBatchNumber() + ", workstationId=" + getWorkstationId() + ", workstationCode=" + getWorkstationCode() + ", workstationName=" + getWorkstationName() + ", workbenchId=" + getWorkbenchId() + ", workbenchName=" + getWorkbenchName() + ", shiftIndexName=" + getShiftIndexName() + ", traceStatus=" + getTraceStatus() + ", onlineTime=" + getOnlineTime() + ", offlineTime=" + getOfflineTime() + ")";
|
}
|
|
public Long getRecordId() {
|
return this.recordId;
|
}
|
|
public Long getTraceId() {
|
return this.traceId;
|
}
|
|
public String getPartNo() {
|
return this.partNo;
|
}
|
|
public String getBatchNumber() {
|
return this.batchNumber;
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
|
public String getWorkstationCode() {
|
return this.workstationCode;
|
}
|
|
public String getWorkstationName() {
|
return this.workstationName;
|
}
|
|
public Long getWorkbenchId() {
|
return this.workbenchId;
|
}
|
|
public String getWorkbenchName() {
|
return this.workbenchName;
|
}
|
|
public String getShiftIndexName() {
|
return this.shiftIndexName;
|
}
|
|
public Integer getTraceStatus() {
|
return this.traceStatus;
|
}
|
|
public Date getOnlineTime() {
|
return this.onlineTime;
|
}
|
|
public Date getOfflineTime() {
|
return this.offlineTime;
|
}
|
}
|