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 io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import com.qianwen.smartman.common.cache.RegionCache;
|
|
@HeadRowHeight(20)
|
@ColumnWidth(25)
|
@ContentRowHeight(18)
|
|
public class MaintainPlanExcel implements Serializable {
|
@ExcelProperty({"计划单号"})
|
@ApiModelProperty("计划单号")
|
private String code;
|
@ExcelProperty({"机器编码"})
|
@ApiModelProperty("机器编码")
|
private String deviceCode;
|
@ExcelProperty({"机器名称"})
|
@ApiModelProperty("机器名称")
|
private String deviceName;
|
@ExcelProperty({"机器类型"})
|
@ApiModelProperty("机器类型")
|
private String deviceTypeName;
|
@ExcelProperty({"保养项目"})
|
@ApiModelProperty("保养项目")
|
private String projectName;
|
@ExcelProperty(value = {"上次保养日期"}, index = RegionCache.VILLAGE_LEVEL)
|
@ApiModelProperty("上次保养日期")
|
private String preMaintainTime;
|
@ExcelProperty({"保养周期"})
|
@ApiModelProperty("保养周期")
|
private Integer intervalTime;
|
@ExcelProperty({"下次保养日期"})
|
@ApiModelProperty("下次保养日期")
|
private String maintainDate;
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
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 setProjectName(final String projectName) {
|
this.projectName = projectName;
|
}
|
|
public void setPreMaintainTime(final String preMaintainTime) {
|
this.preMaintainTime = preMaintainTime;
|
}
|
|
public void setIntervalTime(final Integer intervalTime) {
|
this.intervalTime = intervalTime;
|
}
|
|
public void setMaintainDate(final String maintainDate) {
|
this.maintainDate = maintainDate;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MaintainPlanExcel) {
|
MaintainPlanExcel other = (MaintainPlanExcel) o;
|
if (other.canEqual(this)) {
|
Object this$intervalTime = getIntervalTime();
|
Object other$intervalTime = other.getIntervalTime();
|
if (this$intervalTime == null) {
|
if (other$intervalTime != null) {
|
return false;
|
}
|
} else if (!this$intervalTime.equals(other$intervalTime)) {
|
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$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$projectName = getProjectName();
|
Object other$projectName = other.getProjectName();
|
if (this$projectName == null) {
|
if (other$projectName != null) {
|
return false;
|
}
|
} else if (!this$projectName.equals(other$projectName)) {
|
return false;
|
}
|
Object this$preMaintainTime = getPreMaintainTime();
|
Object other$preMaintainTime = other.getPreMaintainTime();
|
if (this$preMaintainTime == null) {
|
if (other$preMaintainTime != null) {
|
return false;
|
}
|
} else if (!this$preMaintainTime.equals(other$preMaintainTime)) {
|
return false;
|
}
|
Object this$maintainDate = getMaintainDate();
|
Object other$maintainDate = other.getMaintainDate();
|
return this$maintainDate == null ? other$maintainDate == null : this$maintainDate.equals(other$maintainDate);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof MaintainPlanExcel;
|
}
|
|
public int hashCode() {
|
Object $intervalTime = getIntervalTime();
|
int result = (1 * 59) + ($intervalTime == null ? 43 : $intervalTime.hashCode());
|
Object $code = getCode();
|
int result2 = (result * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $deviceCode = getDeviceCode();
|
int result3 = (result2 * 59) + ($deviceCode == null ? 43 : $deviceCode.hashCode());
|
Object $deviceName = getDeviceName();
|
int result4 = (result3 * 59) + ($deviceName == null ? 43 : $deviceName.hashCode());
|
Object $deviceTypeName = getDeviceTypeName();
|
int result5 = (result4 * 59) + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
|
Object $projectName = getProjectName();
|
int result6 = (result5 * 59) + ($projectName == null ? 43 : $projectName.hashCode());
|
Object $preMaintainTime = getPreMaintainTime();
|
int result7 = (result6 * 59) + ($preMaintainTime == null ? 43 : $preMaintainTime.hashCode());
|
Object $maintainDate = getMaintainDate();
|
return (result7 * 59) + ($maintainDate == null ? 43 : $maintainDate.hashCode());
|
}
|
|
public String toString() {
|
return "MaintainPlanExcel(code=" + getCode() + ", deviceCode=" + getDeviceCode() + ", deviceName=" + getDeviceName() + ", deviceTypeName=" + getDeviceTypeName() + ", projectName=" + getProjectName() + ", preMaintainTime=" + getPreMaintainTime() + ", intervalTime=" + getIntervalTime() + ", maintainDate=" + getMaintainDate() + ")";
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getDeviceCode() {
|
return this.deviceCode;
|
}
|
|
public String getDeviceName() {
|
return this.deviceName;
|
}
|
|
public String getDeviceTypeName() {
|
return this.deviceTypeName;
|
}
|
|
public String getProjectName() {
|
return this.projectName;
|
}
|
|
public String getPreMaintainTime() {
|
return this.preMaintainTime;
|
}
|
|
public Integer getIntervalTime() {
|
return this.intervalTime;
|
}
|
|
public String getMaintainDate() {
|
return this.maintainDate;
|
}
|
}
|