package com.qianwen.smartman.modules.tpm.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
|
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
|
import io.swagger.annotations.ApiModel;
|
import java.time.LocalDateTime;
|
import com.qianwen.core.tenant.mp.TenantEntity;
|
|
@ApiModel(description = "保养计划")
|
@TableName("blade_maintain_plan")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/entity/MaintainPlan.class */
|
public class MaintainPlan extends TenantEntity {
|
private String code;
|
private Long deviceId;
|
private String deviceCode;
|
private String deviceName;
|
private Long deviceTypeId;
|
private String deviceTypeName;
|
private Long projectId;
|
private String projectName;
|
private String projectCode;
|
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
@JsonSerialize(using = LocalDateTimeSerializer.class)
|
private LocalDateTime maintainDate;
|
private Integer preWarningDays;
|
private Integer planStatus;
|
private Integer isAuto;
|
private Integer intervalTime;
|
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
@JsonSerialize(using = LocalDateTimeSerializer.class)
|
private LocalDateTime preMaintainTime;
|
private String machineModel;
|
private String remark;
|
private Integer maintainNature;
|
private Long maintainUserId;
|
private String maintainUserName;
|
|
public MaintainPlan setCode(final String code) {
|
this.code = code;
|
return this;
|
}
|
|
public MaintainPlan setDeviceId(final Long deviceId) {
|
this.deviceId = deviceId;
|
return this;
|
}
|
|
public MaintainPlan setDeviceCode(final String deviceCode) {
|
this.deviceCode = deviceCode;
|
return this;
|
}
|
|
public MaintainPlan setDeviceName(final String deviceName) {
|
this.deviceName = deviceName;
|
return this;
|
}
|
|
public MaintainPlan setDeviceTypeId(final Long deviceTypeId) {
|
this.deviceTypeId = deviceTypeId;
|
return this;
|
}
|
|
public MaintainPlan setDeviceTypeName(final String deviceTypeName) {
|
this.deviceTypeName = deviceTypeName;
|
return this;
|
}
|
|
public MaintainPlan setProjectId(final Long projectId) {
|
this.projectId = projectId;
|
return this;
|
}
|
|
public MaintainPlan setProjectName(final String projectName) {
|
this.projectName = projectName;
|
return this;
|
}
|
|
public MaintainPlan setProjectCode(final String projectCode) {
|
this.projectCode = projectCode;
|
return this;
|
}
|
|
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
public MaintainPlan setMaintainDate(final LocalDateTime maintainDate) {
|
this.maintainDate = maintainDate;
|
return this;
|
}
|
|
public MaintainPlan setPreWarningDays(final Integer preWarningDays) {
|
this.preWarningDays = preWarningDays;
|
return this;
|
}
|
|
public MaintainPlan setPlanStatus(final Integer planStatus) {
|
this.planStatus = planStatus;
|
return this;
|
}
|
|
public MaintainPlan setIsAuto(final Integer isAuto) {
|
this.isAuto = isAuto;
|
return this;
|
}
|
|
public MaintainPlan setIntervalTime(final Integer intervalTime) {
|
this.intervalTime = intervalTime;
|
return this;
|
}
|
|
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
|
public MaintainPlan setPreMaintainTime(final LocalDateTime preMaintainTime) {
|
this.preMaintainTime = preMaintainTime;
|
return this;
|
}
|
|
public MaintainPlan setMachineModel(final String machineModel) {
|
this.machineModel = machineModel;
|
return this;
|
}
|
|
public MaintainPlan setRemark(final String remark) {
|
this.remark = remark;
|
return this;
|
}
|
|
public MaintainPlan setMaintainNature(final Integer maintainNature) {
|
this.maintainNature = maintainNature;
|
return this;
|
}
|
|
public MaintainPlan setMaintainUserId(final Long maintainUserId) {
|
this.maintainUserId = maintainUserId;
|
return this;
|
}
|
|
public MaintainPlan setMaintainUserName(final String maintainUserName) {
|
this.maintainUserName = maintainUserName;
|
return this;
|
}
|
|
public String toString() {
|
return "MaintainPlan(code=" + getCode() + ", deviceId=" + getDeviceId() + ", deviceCode=" + getDeviceCode() + ", deviceName=" + getDeviceName() + ", deviceTypeId=" + getDeviceTypeId() + ", deviceTypeName=" + getDeviceTypeName() + ", projectId=" + getProjectId() + ", projectName=" + getProjectName() + ", projectCode=" + getProjectCode() + ", maintainDate=" + getMaintainDate() + ", preWarningDays=" + getPreWarningDays() + ", planStatus=" + getPlanStatus() + ", isAuto=" + getIsAuto() + ", intervalTime=" + getIntervalTime() + ", preMaintainTime=" + getPreMaintainTime() + ", machineModel=" + getMachineModel() + ", remark=" + getRemark() + ", maintainNature=" + getMaintainNature() + ", maintainUserId=" + getMaintainUserId() + ", maintainUserName=" + getMaintainUserName() + ")";
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MaintainPlan) {
|
MaintainPlan other = (MaintainPlan) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
Object this$deviceId = getDeviceId();
|
Object other$deviceId = other.getDeviceId();
|
if (this$deviceId == null) {
|
if (other$deviceId != null) {
|
return false;
|
}
|
} else if (!this$deviceId.equals(other$deviceId)) {
|
return false;
|
}
|
Object this$deviceTypeId = getDeviceTypeId();
|
Object other$deviceTypeId = other.getDeviceTypeId();
|
if (this$deviceTypeId == null) {
|
if (other$deviceTypeId != null) {
|
return false;
|
}
|
} else if (!this$deviceTypeId.equals(other$deviceTypeId)) {
|
return false;
|
}
|
Object this$projectId = getProjectId();
|
Object other$projectId = other.getProjectId();
|
if (this$projectId == null) {
|
if (other$projectId != null) {
|
return false;
|
}
|
} else if (!this$projectId.equals(other$projectId)) {
|
return false;
|
}
|
Object this$preWarningDays = getPreWarningDays();
|
Object other$preWarningDays = other.getPreWarningDays();
|
if (this$preWarningDays == null) {
|
if (other$preWarningDays != null) {
|
return false;
|
}
|
} else if (!this$preWarningDays.equals(other$preWarningDays)) {
|
return false;
|
}
|
Object this$planStatus = getPlanStatus();
|
Object other$planStatus = other.getPlanStatus();
|
if (this$planStatus == null) {
|
if (other$planStatus != null) {
|
return false;
|
}
|
} else if (!this$planStatus.equals(other$planStatus)) {
|
return false;
|
}
|
Object this$isAuto = getIsAuto();
|
Object other$isAuto = other.getIsAuto();
|
if (this$isAuto == null) {
|
if (other$isAuto != null) {
|
return false;
|
}
|
} else if (!this$isAuto.equals(other$isAuto)) {
|
return false;
|
}
|
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$maintainNature = getMaintainNature();
|
Object other$maintainNature = other.getMaintainNature();
|
if (this$maintainNature == null) {
|
if (other$maintainNature != null) {
|
return false;
|
}
|
} else if (!this$maintainNature.equals(other$maintainNature)) {
|
return false;
|
}
|
Object this$maintainUserId = getMaintainUserId();
|
Object other$maintainUserId = other.getMaintainUserId();
|
if (this$maintainUserId == null) {
|
if (other$maintainUserId != null) {
|
return false;
|
}
|
} else if (!this$maintainUserId.equals(other$maintainUserId)) {
|
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$projectCode = getProjectCode();
|
Object other$projectCode = other.getProjectCode();
|
if (this$projectCode == null) {
|
if (other$projectCode != null) {
|
return false;
|
}
|
} else if (!this$projectCode.equals(other$projectCode)) {
|
return false;
|
}
|
Object this$maintainDate = getMaintainDate();
|
Object other$maintainDate = other.getMaintainDate();
|
if (this$maintainDate == null) {
|
if (other$maintainDate != null) {
|
return false;
|
}
|
} else if (!this$maintainDate.equals(other$maintainDate)) {
|
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$machineModel = getMachineModel();
|
Object other$machineModel = other.getMachineModel();
|
if (this$machineModel == null) {
|
if (other$machineModel != null) {
|
return false;
|
}
|
} else if (!this$machineModel.equals(other$machineModel)) {
|
return false;
|
}
|
Object this$remark = getRemark();
|
Object other$remark = other.getRemark();
|
if (this$remark == null) {
|
if (other$remark != null) {
|
return false;
|
}
|
} else if (!this$remark.equals(other$remark)) {
|
return false;
|
}
|
Object this$maintainUserName = getMaintainUserName();
|
Object other$maintainUserName = other.getMaintainUserName();
|
return this$maintainUserName == null ? other$maintainUserName == null : this$maintainUserName.equals(other$maintainUserName);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof MaintainPlan;
|
}
|
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $deviceId = getDeviceId();
|
int result2 = (result * 59) + ($deviceId == null ? 43 : $deviceId.hashCode());
|
Object $deviceTypeId = getDeviceTypeId();
|
int result3 = (result2 * 59) + ($deviceTypeId == null ? 43 : $deviceTypeId.hashCode());
|
Object $projectId = getProjectId();
|
int result4 = (result3 * 59) + ($projectId == null ? 43 : $projectId.hashCode());
|
Object $preWarningDays = getPreWarningDays();
|
int result5 = (result4 * 59) + ($preWarningDays == null ? 43 : $preWarningDays.hashCode());
|
Object $planStatus = getPlanStatus();
|
int result6 = (result5 * 59) + ($planStatus == null ? 43 : $planStatus.hashCode());
|
Object $isAuto = getIsAuto();
|
int result7 = (result6 * 59) + ($isAuto == null ? 43 : $isAuto.hashCode());
|
Object $intervalTime = getIntervalTime();
|
int result8 = (result7 * 59) + ($intervalTime == null ? 43 : $intervalTime.hashCode());
|
Object $maintainNature = getMaintainNature();
|
int result9 = (result8 * 59) + ($maintainNature == null ? 43 : $maintainNature.hashCode());
|
Object $maintainUserId = getMaintainUserId();
|
int result10 = (result9 * 59) + ($maintainUserId == null ? 43 : $maintainUserId.hashCode());
|
Object $code = getCode();
|
int result11 = (result10 * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $deviceCode = getDeviceCode();
|
int result12 = (result11 * 59) + ($deviceCode == null ? 43 : $deviceCode.hashCode());
|
Object $deviceName = getDeviceName();
|
int result13 = (result12 * 59) + ($deviceName == null ? 43 : $deviceName.hashCode());
|
Object $deviceTypeName = getDeviceTypeName();
|
int result14 = (result13 * 59) + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
|
Object $projectName = getProjectName();
|
int result15 = (result14 * 59) + ($projectName == null ? 43 : $projectName.hashCode());
|
Object $projectCode = getProjectCode();
|
int result16 = (result15 * 59) + ($projectCode == null ? 43 : $projectCode.hashCode());
|
Object $maintainDate = getMaintainDate();
|
int result17 = (result16 * 59) + ($maintainDate == null ? 43 : $maintainDate.hashCode());
|
Object $preMaintainTime = getPreMaintainTime();
|
int result18 = (result17 * 59) + ($preMaintainTime == null ? 43 : $preMaintainTime.hashCode());
|
Object $machineModel = getMachineModel();
|
int result19 = (result18 * 59) + ($machineModel == null ? 43 : $machineModel.hashCode());
|
Object $remark = getRemark();
|
int result20 = (result19 * 59) + ($remark == null ? 43 : $remark.hashCode());
|
Object $maintainUserName = getMaintainUserName();
|
return (result20 * 59) + ($maintainUserName == null ? 43 : $maintainUserName.hashCode());
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public Long getDeviceId() {
|
return this.deviceId;
|
}
|
|
public String getDeviceCode() {
|
return this.deviceCode;
|
}
|
|
public String getDeviceName() {
|
return this.deviceName;
|
}
|
|
public Long getDeviceTypeId() {
|
return this.deviceTypeId;
|
}
|
|
public String getDeviceTypeName() {
|
return this.deviceTypeName;
|
}
|
|
public Long getProjectId() {
|
return this.projectId;
|
}
|
|
public String getProjectName() {
|
return this.projectName;
|
}
|
|
public String getProjectCode() {
|
return this.projectCode;
|
}
|
|
public LocalDateTime getMaintainDate() {
|
return this.maintainDate;
|
}
|
|
public Integer getPreWarningDays() {
|
return this.preWarningDays;
|
}
|
|
public Integer getPlanStatus() {
|
return this.planStatus;
|
}
|
|
public Integer getIsAuto() {
|
return this.isAuto;
|
}
|
|
public Integer getIntervalTime() {
|
return this.intervalTime;
|
}
|
|
public LocalDateTime getPreMaintainTime() {
|
return this.preMaintainTime;
|
}
|
|
public String getMachineModel() {
|
return this.machineModel;
|
}
|
|
public String getRemark() {
|
return this.remark;
|
}
|
|
public Integer getMaintainNature() {
|
return this.maintainNature;
|
}
|
|
public Long getMaintainUserId() {
|
return this.maintainUserId;
|
}
|
|
public String getMaintainUserName() {
|
return this.maintainUserName;
|
}
|
}
|