package com.qianwen.smartman.modules.trace.excel;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
|
@HeadRowHeight(20)
|
@ColumnWidth(20)
|
@ContentRowHeight(18)
|
|
public class WorkpieceTraceExport implements Serializable {
|
private static final long serialVersionUID = -6021218417974573324L;
|
@ExcelProperty({"序号"})
|
@ApiModelProperty("序号")
|
private String sort;
|
@ExcelProperty({"批次号"})
|
@ApiModelProperty("批次号")
|
private String batchNumber;
|
@ExcelProperty({"工件编号"})
|
@ApiModelProperty("工件编号")
|
private String partNo;
|
@ExcelProperty({"上线时间"})
|
@ApiModelProperty("上线时间")
|
private String onlineTime;
|
@ExcelProperty({"下线时间"})
|
@ApiModelProperty("下线时间")
|
private String offlineTime;
|
@ExcelProperty({"工位编号"})
|
@ApiModelProperty("工位编号")
|
private String workstationCode;
|
@ExcelProperty({"工位名称"})
|
@ApiModelProperty("工位名称")
|
private String workstationName;
|
@ExcelProperty({"工作台"})
|
@ApiModelProperty("工作台")
|
private String workbenchName;
|
@ExcelProperty({"班次"})
|
@ApiModelProperty("班次")
|
private String shiftIndexName;
|
@ExcelProperty({"状态"})
|
@ApiModelProperty("状态")
|
private String traceStatus;
|
@ExcelProperty({"工件ng原因"})
|
@ApiModelProperty("ng原因")
|
private String reasonCode;
|
|
|
public static class WorkpieceTraceExportBuilder {
|
private String sort;
|
private String batchNumber;
|
private String partNo;
|
private String onlineTime;
|
private String offlineTime;
|
private String workstationCode;
|
private String workstationName;
|
private String workbenchName;
|
private String shiftIndexName;
|
private String traceStatus;
|
private String reasonCode;
|
|
WorkpieceTraceExportBuilder() {
|
}
|
|
public WorkpieceTraceExportBuilder sort(final String sort) {
|
this.sort = sort;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder batchNumber(final String batchNumber) {
|
this.batchNumber = batchNumber;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder partNo(final String partNo) {
|
this.partNo = partNo;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder onlineTime(final String onlineTime) {
|
this.onlineTime = onlineTime;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder offlineTime(final String offlineTime) {
|
this.offlineTime = offlineTime;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder workstationCode(final String workstationCode) {
|
this.workstationCode = workstationCode;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder workstationName(final String workstationName) {
|
this.workstationName = workstationName;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder workbenchName(final String workbenchName) {
|
this.workbenchName = workbenchName;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder shiftIndexName(final String shiftIndexName) {
|
this.shiftIndexName = shiftIndexName;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder traceStatus(final String traceStatus) {
|
this.traceStatus = traceStatus;
|
return this;
|
}
|
|
public WorkpieceTraceExportBuilder reasonCode(final String reasonCode) {
|
this.reasonCode = reasonCode;
|
return this;
|
}
|
|
public WorkpieceTraceExport build() {
|
return new WorkpieceTraceExport(this.sort, this.batchNumber, this.partNo, this.onlineTime, this.offlineTime, this.workstationCode, this.workstationName, this.workbenchName, this.shiftIndexName, this.traceStatus, this.reasonCode);
|
}
|
|
public String toString() {
|
return "WorkpieceTraceExport.WorkpieceTraceExportBuilder(sort=" + this.sort + ", batchNumber=" + this.batchNumber + ", partNo=" + this.partNo + ", onlineTime=" + this.onlineTime + ", offlineTime=" + this.offlineTime + ", workstationCode=" + this.workstationCode + ", workstationName=" + this.workstationName + ", workbenchName=" + this.workbenchName + ", shiftIndexName=" + this.shiftIndexName + ", traceStatus=" + this.traceStatus + ", reasonCode=" + this.reasonCode + ")";
|
}
|
}
|
|
public void setSort(final String sort) {
|
this.sort = sort;
|
}
|
|
public void setBatchNumber(final String batchNumber) {
|
this.batchNumber = batchNumber;
|
}
|
|
public void setPartNo(final String partNo) {
|
this.partNo = partNo;
|
}
|
|
public void setOnlineTime(final String onlineTime) {
|
this.onlineTime = onlineTime;
|
}
|
|
public void setOfflineTime(final String offlineTime) {
|
this.offlineTime = offlineTime;
|
}
|
|
public void setWorkstationCode(final String workstationCode) {
|
this.workstationCode = workstationCode;
|
}
|
|
public void setWorkstationName(final String workstationName) {
|
this.workstationName = workstationName;
|
}
|
|
public void setWorkbenchName(final String workbenchName) {
|
this.workbenchName = workbenchName;
|
}
|
|
public void setShiftIndexName(final String shiftIndexName) {
|
this.shiftIndexName = shiftIndexName;
|
}
|
|
public void setTraceStatus(final String traceStatus) {
|
this.traceStatus = traceStatus;
|
}
|
|
public void setReasonCode(final String reasonCode) {
|
this.reasonCode = reasonCode;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof WorkpieceTraceExport) {
|
WorkpieceTraceExport other = (WorkpieceTraceExport) o;
|
if (other.canEqual(this)) {
|
Object this$sort = getSort();
|
Object other$sort = other.getSort();
|
if (this$sort == null) {
|
if (other$sort != null) {
|
return false;
|
}
|
} else if (!this$sort.equals(other$sort)) {
|
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$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$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();
|
if (this$offlineTime == null) {
|
if (other$offlineTime != null) {
|
return false;
|
}
|
} else if (!this$offlineTime.equals(other$offlineTime)) {
|
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$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$reasonCode = getReasonCode();
|
Object other$reasonCode = other.getReasonCode();
|
return this$reasonCode == null ? other$reasonCode == null : this$reasonCode.equals(other$reasonCode);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof WorkpieceTraceExport;
|
}
|
|
public int hashCode() {
|
Object $sort = getSort();
|
int result = (1 * 59) + ($sort == null ? 43 : $sort.hashCode());
|
Object $batchNumber = getBatchNumber();
|
int result2 = (result * 59) + ($batchNumber == null ? 43 : $batchNumber.hashCode());
|
Object $partNo = getPartNo();
|
int result3 = (result2 * 59) + ($partNo == null ? 43 : $partNo.hashCode());
|
Object $onlineTime = getOnlineTime();
|
int result4 = (result3 * 59) + ($onlineTime == null ? 43 : $onlineTime.hashCode());
|
Object $offlineTime = getOfflineTime();
|
int result5 = (result4 * 59) + ($offlineTime == null ? 43 : $offlineTime.hashCode());
|
Object $workstationCode = getWorkstationCode();
|
int result6 = (result5 * 59) + ($workstationCode == null ? 43 : $workstationCode.hashCode());
|
Object $workstationName = getWorkstationName();
|
int result7 = (result6 * 59) + ($workstationName == null ? 43 : $workstationName.hashCode());
|
Object $workbenchName = getWorkbenchName();
|
int result8 = (result7 * 59) + ($workbenchName == null ? 43 : $workbenchName.hashCode());
|
Object $shiftIndexName = getShiftIndexName();
|
int result9 = (result8 * 59) + ($shiftIndexName == null ? 43 : $shiftIndexName.hashCode());
|
Object $traceStatus = getTraceStatus();
|
int result10 = (result9 * 59) + ($traceStatus == null ? 43 : $traceStatus.hashCode());
|
Object $reasonCode = getReasonCode();
|
return (result10 * 59) + ($reasonCode == null ? 43 : $reasonCode.hashCode());
|
}
|
|
public String toString() {
|
return "WorkpieceTraceExport(sort=" + getSort() + ", batchNumber=" + getBatchNumber() + ", partNo=" + getPartNo() + ", onlineTime=" + getOnlineTime() + ", offlineTime=" + getOfflineTime() + ", workstationCode=" + getWorkstationCode() + ", workstationName=" + getWorkstationName() + ", workbenchName=" + getWorkbenchName() + ", shiftIndexName=" + getShiftIndexName() + ", traceStatus=" + getTraceStatus() + ", reasonCode=" + getReasonCode() + ")";
|
}
|
|
public static WorkpieceTraceExportBuilder builder() {
|
return new WorkpieceTraceExportBuilder();
|
}
|
|
public WorkpieceTraceExport() {
|
}
|
|
public WorkpieceTraceExport(final String sort, final String batchNumber, final String partNo, final String onlineTime, final String offlineTime, final String workstationCode, final String workstationName, final String workbenchName, final String shiftIndexName, final String traceStatus, final String reasonCode) {
|
this.sort = sort;
|
this.batchNumber = batchNumber;
|
this.partNo = partNo;
|
this.onlineTime = onlineTime;
|
this.offlineTime = offlineTime;
|
this.workstationCode = workstationCode;
|
this.workstationName = workstationName;
|
this.workbenchName = workbenchName;
|
this.shiftIndexName = shiftIndexName;
|
this.traceStatus = traceStatus;
|
this.reasonCode = reasonCode;
|
}
|
|
public String getSort() {
|
return this.sort;
|
}
|
|
public String getBatchNumber() {
|
return this.batchNumber;
|
}
|
|
public String getPartNo() {
|
return this.partNo;
|
}
|
|
public String getOnlineTime() {
|
return this.onlineTime;
|
}
|
|
public String getOfflineTime() {
|
return this.offlineTime;
|
}
|
|
public String getWorkstationCode() {
|
return this.workstationCode;
|
}
|
|
public String getWorkstationName() {
|
return this.workstationName;
|
}
|
|
public String getWorkbenchName() {
|
return this.workbenchName;
|
}
|
|
public String getShiftIndexName() {
|
return this.shiftIndexName;
|
}
|
|
public String getTraceStatus() {
|
return this.traceStatus;
|
}
|
|
public String getReasonCode() {
|
return this.reasonCode;
|
}
|
}
|