package com.qianwen.smartman.modules.tpm.vo.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 java.io.Serializable; import com.qianwen.smartman.common.cache.RegionCache; @HeadRowHeight(20) @ColumnWidth(16) @ContentRowHeight(18) public class CheckRecordExcel implements Serializable { @ExcelProperty(value = {"点检单号"}, index = 0) private String checkCode; @ExcelProperty(value = {"机器编号"}, index = 1) private String deviceCode; @ExcelProperty(value = {"机器名称"}, index = 2) private String deviceName; @ExcelProperty(value = {"机器类型"}, index = 3) private String deviceTypeName; @ExcelProperty(value = {"点检时间"}, index = 4) private String checkTime; @ExcelProperty(value = {"检验人员"}, index = RegionCache.VILLAGE_LEVEL) private String checkUserName; @ExcelProperty(value = {"检验项目"}, index = 6) private String checkProjectName; @ExcelProperty(value = {"检验结果"}, index = 7) private String checkResult; public static class CheckRecordExcelBuilder { private String checkCode; private String deviceCode; private String deviceName; private String deviceTypeName; private String checkTime; private String checkUserName; private String checkProjectName; private String checkResult; CheckRecordExcelBuilder() { } public CheckRecordExcelBuilder checkCode(final String checkCode) { this.checkCode = checkCode; return this; } public CheckRecordExcelBuilder deviceCode(final String deviceCode) { this.deviceCode = deviceCode; return this; } public CheckRecordExcelBuilder deviceName(final String deviceName) { this.deviceName = deviceName; return this; } public CheckRecordExcelBuilder deviceTypeName(final String deviceTypeName) { this.deviceTypeName = deviceTypeName; return this; } public CheckRecordExcelBuilder checkTime(final String checkTime) { this.checkTime = checkTime; return this; } public CheckRecordExcelBuilder checkUserName(final String checkUserName) { this.checkUserName = checkUserName; return this; } public CheckRecordExcelBuilder checkProjectName(final String checkProjectName) { this.checkProjectName = checkProjectName; return this; } public CheckRecordExcelBuilder checkResult(final String checkResult) { this.checkResult = checkResult; return this; } public CheckRecordExcel build() { return new CheckRecordExcel(this.checkCode, this.deviceCode, this.deviceName, this.deviceTypeName, this.checkTime, this.checkUserName, this.checkProjectName, this.checkResult); } public String toString() { return "CheckRecordExcel.CheckRecordExcelBuilder(checkCode=" + this.checkCode + ", deviceCode=" + this.deviceCode + ", deviceName=" + this.deviceName + ", deviceTypeName=" + this.deviceTypeName + ", checkTime=" + this.checkTime + ", checkUserName=" + this.checkUserName + ", checkProjectName=" + this.checkProjectName + ", checkResult=" + this.checkResult + ")"; } } public void setCheckCode(final String checkCode) { this.checkCode = checkCode; } public void setDeviceCode(final String deviceCode) { this.deviceCode = deviceCode; } public void setDeviceName(final String deviceName) { this.deviceName = deviceName; } public void setDeviceTypeName(final String deviceTypeName) { this.deviceTypeName = deviceTypeName; } public void setCheckTime(final String checkTime) { this.checkTime = checkTime; } public void setCheckUserName(final String checkUserName) { this.checkUserName = checkUserName; } public void setCheckProjectName(final String checkProjectName) { this.checkProjectName = checkProjectName; } public void setCheckResult(final String checkResult) { this.checkResult = checkResult; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof CheckRecordExcel) { CheckRecordExcel other = (CheckRecordExcel) o; if (other.canEqual(this)) { Object this$checkCode = getCheckCode(); Object other$checkCode = other.getCheckCode(); if (this$checkCode == null) { if (other$checkCode != null) { return false; } } else if (!this$checkCode.equals(other$checkCode)) { return false; } Object this$deviceCode = getDeviceCode(); Object other$deviceCode = other.getDeviceCode(); if (this$deviceCode == null) { if (other$deviceCode != null) { return false; } } else if (!this$deviceCode.equals(other$deviceCode)) { return false; } Object this$deviceName = getDeviceName(); Object other$deviceName = other.getDeviceName(); if (this$deviceName == null) { if (other$deviceName != null) { return false; } } else if (!this$deviceName.equals(other$deviceName)) { return false; } Object this$deviceTypeName = getDeviceTypeName(); Object other$deviceTypeName = other.getDeviceTypeName(); if (this$deviceTypeName == null) { if (other$deviceTypeName != null) { return false; } } else if (!this$deviceTypeName.equals(other$deviceTypeName)) { return false; } Object this$checkTime = getCheckTime(); Object other$checkTime = other.getCheckTime(); if (this$checkTime == null) { if (other$checkTime != null) { return false; } } else if (!this$checkTime.equals(other$checkTime)) { return false; } Object this$checkUserName = getCheckUserName(); Object other$checkUserName = other.getCheckUserName(); if (this$checkUserName == null) { if (other$checkUserName != null) { return false; } } else if (!this$checkUserName.equals(other$checkUserName)) { return false; } Object this$checkProjectName = getCheckProjectName(); Object other$checkProjectName = other.getCheckProjectName(); if (this$checkProjectName == null) { if (other$checkProjectName != null) { return false; } } else if (!this$checkProjectName.equals(other$checkProjectName)) { return false; } Object this$checkResult = getCheckResult(); Object other$checkResult = other.getCheckResult(); return this$checkResult == null ? other$checkResult == null : this$checkResult.equals(other$checkResult); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof CheckRecordExcel; } public int hashCode() { Object $checkCode = getCheckCode(); int result = (1 * 59) + ($checkCode == null ? 43 : $checkCode.hashCode()); Object $deviceCode = getDeviceCode(); int result2 = (result * 59) + ($deviceCode == null ? 43 : $deviceCode.hashCode()); Object $deviceName = getDeviceName(); int result3 = (result2 * 59) + ($deviceName == null ? 43 : $deviceName.hashCode()); Object $deviceTypeName = getDeviceTypeName(); int result4 = (result3 * 59) + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode()); Object $checkTime = getCheckTime(); int result5 = (result4 * 59) + ($checkTime == null ? 43 : $checkTime.hashCode()); Object $checkUserName = getCheckUserName(); int result6 = (result5 * 59) + ($checkUserName == null ? 43 : $checkUserName.hashCode()); Object $checkProjectName = getCheckProjectName(); int result7 = (result6 * 59) + ($checkProjectName == null ? 43 : $checkProjectName.hashCode()); Object $checkResult = getCheckResult(); return (result7 * 59) + ($checkResult == null ? 43 : $checkResult.hashCode()); } public String toString() { return "CheckRecordExcel(checkCode=" + getCheckCode() + ", deviceCode=" + getDeviceCode() + ", deviceName=" + getDeviceName() + ", deviceTypeName=" + getDeviceTypeName() + ", checkTime=" + getCheckTime() + ", checkUserName=" + getCheckUserName() + ", checkProjectName=" + getCheckProjectName() + ", checkResult=" + getCheckResult() + ")"; } public static CheckRecordExcelBuilder builder() { return new CheckRecordExcelBuilder(); } public CheckRecordExcel() { } public CheckRecordExcel(final String checkCode, final String deviceCode, final String deviceName, final String deviceTypeName, final String checkTime, final String checkUserName, final String checkProjectName, final String checkResult) { this.checkCode = checkCode; this.deviceCode = deviceCode; this.deviceName = deviceName; this.deviceTypeName = deviceTypeName; this.checkTime = checkTime; this.checkUserName = checkUserName; this.checkProjectName = checkProjectName; this.checkResult = checkResult; } public String getCheckCode() { return this.checkCode; } public String getDeviceCode() { return this.deviceCode; } public String getDeviceName() { return this.deviceName; } public String getDeviceTypeName() { return this.deviceTypeName; } public String getCheckTime() { return this.checkTime; } public String getCheckUserName() { return this.checkUserName; } public String getCheckProjectName() { return this.checkProjectName; } public String getCheckResult() { return this.checkResult; } }