package com.qianwen.smartman.modules.tpm.vo; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer; import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.LocalDateTime; import java.util.List; import com.qianwen.smartman.common.constant.DateConstant; @ApiModel(description = "保养计划") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/vo/MaintainPlanVO.class */ public class MaintainPlanVO { @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("保养计划Id(主键)") private Long id; @ApiModelProperty("计划任务编码") private String code; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("机器Id") private Long deviceId; @ApiModelProperty("机器编码") private String deviceCode; @ApiModelProperty("机器名称") private String deviceName; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("机器类型Id") private Long deviceTypeId; @ApiModelProperty("机器类型名称") private String deviceTypeName; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("保养项目Id") private Long projectId; @ApiModelProperty("保养项目名称") private String projectName; @ApiModelProperty("保养项目编码") private String projectCode; @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonSerialize(using = LocalDateTimeSerializer.class) @ApiModelProperty("保养日期") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") private LocalDateTime maintainDate; @ApiModelProperty("保养预警提示") private Integer preWarningDays; @ApiModelProperty("计划状态") private Integer planStatus; @ApiModelProperty("计划状态名称") private String planStatusName; @ApiModelProperty("是否自动生成计划") private Integer isAuto; @ApiModelProperty("是否自动生成计划名称") private String isAutoName; @ApiModelProperty("周期(天)") private Integer intervalTime; @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonSerialize(using = LocalDateTimeSerializer.class) @ApiModelProperty("上一次保养时间") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") private LocalDateTime preMaintainTime; @ApiModelProperty("保养计划保养项") private List maintainPlanItemVoList; @ApiModelProperty("机器规格") private String machineModel; @ApiModelProperty("备注") private String remark; @ApiModelProperty("保养性质") private Integer maintainNature; @ApiModelProperty("保养性质") private String maintainNatureName; @ApiModelProperty(value = "保养负责人id", dataType = "java.lang.String") private Long maintainUserId; @ApiModelProperty("保养负责人名称") private String maintainUserName; public void setId(final Long id) { this.id = id; } public void setCode(final String code) { this.code = code; } public void setDeviceId(final Long deviceId) { this.deviceId = deviceId; } public void setDeviceCode(final String deviceCode) { this.deviceCode = deviceCode; } public void setDeviceName(final String deviceName) { this.deviceName = deviceName; } public void setDeviceTypeId(final Long deviceTypeId) { this.deviceTypeId = deviceTypeId; } public void setDeviceTypeName(final String deviceTypeName) { this.deviceTypeName = deviceTypeName; } public void setProjectId(final Long projectId) { this.projectId = projectId; } public void setProjectName(final String projectName) { this.projectName = projectName; } public void setProjectCode(final String projectCode) { this.projectCode = projectCode; } @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") public void setMaintainDate(final LocalDateTime maintainDate) { this.maintainDate = maintainDate; } public void setPreWarningDays(final Integer preWarningDays) { this.preWarningDays = preWarningDays; } public void setPlanStatus(final Integer planStatus) { this.planStatus = planStatus; } public void setPlanStatusName(final String planStatusName) { this.planStatusName = planStatusName; } public void setIsAuto(final Integer isAuto) { this.isAuto = isAuto; } public void setIsAutoName(final String isAutoName) { this.isAutoName = isAutoName; } public void setIntervalTime(final Integer intervalTime) { this.intervalTime = intervalTime; } @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") public void setPreMaintainTime(final LocalDateTime preMaintainTime) { this.preMaintainTime = preMaintainTime; } public void setMaintainPlanItemVoList(final List maintainPlanItemVoList) { this.maintainPlanItemVoList = maintainPlanItemVoList; } public void setMachineModel(final String machineModel) { this.machineModel = machineModel; } public void setRemark(final String remark) { this.remark = remark; } public void setMaintainNature(final Integer maintainNature) { this.maintainNature = maintainNature; } public void setMaintainNatureName(final String maintainNatureName) { this.maintainNatureName = maintainNatureName; } public void setMaintainUserId(final Long maintainUserId) { this.maintainUserId = maintainUserId; } public void setMaintainUserName(final String maintainUserName) { this.maintainUserName = maintainUserName; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof MaintainPlanVO) { MaintainPlanVO other = (MaintainPlanVO) o; if (other.canEqual(this)) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } 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$planStatusName = getPlanStatusName(); Object other$planStatusName = other.getPlanStatusName(); if (this$planStatusName == null) { if (other$planStatusName != null) { return false; } } else if (!this$planStatusName.equals(other$planStatusName)) { return false; } Object this$isAutoName = getIsAutoName(); Object other$isAutoName = other.getIsAutoName(); if (this$isAutoName == null) { if (other$isAutoName != null) { return false; } } else if (!this$isAutoName.equals(other$isAutoName)) { 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$maintainPlanItemVoList = getMaintainPlanItemVoList(); Object other$maintainPlanItemVoList = other.getMaintainPlanItemVoList(); if (this$maintainPlanItemVoList == null) { if (other$maintainPlanItemVoList != null) { return false; } } else if (!this$maintainPlanItemVoList.equals(other$maintainPlanItemVoList)) { 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$maintainNatureName = getMaintainNatureName(); Object other$maintainNatureName = other.getMaintainNatureName(); if (this$maintainNatureName == null) { if (other$maintainNatureName != null) { return false; } } else if (!this$maintainNatureName.equals(other$maintainNatureName)) { 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 MaintainPlanVO; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.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 $planStatusName = getPlanStatusName(); int result18 = (result17 * 59) + ($planStatusName == null ? 43 : $planStatusName.hashCode()); Object $isAutoName = getIsAutoName(); int result19 = (result18 * 59) + ($isAutoName == null ? 43 : $isAutoName.hashCode()); Object $preMaintainTime = getPreMaintainTime(); int result20 = (result19 * 59) + ($preMaintainTime == null ? 43 : $preMaintainTime.hashCode()); Object $maintainPlanItemVoList = getMaintainPlanItemVoList(); int result21 = (result20 * 59) + ($maintainPlanItemVoList == null ? 43 : $maintainPlanItemVoList.hashCode()); Object $machineModel = getMachineModel(); int result22 = (result21 * 59) + ($machineModel == null ? 43 : $machineModel.hashCode()); Object $remark = getRemark(); int result23 = (result22 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $maintainNatureName = getMaintainNatureName(); int result24 = (result23 * 59) + ($maintainNatureName == null ? 43 : $maintainNatureName.hashCode()); Object $maintainUserName = getMaintainUserName(); return (result24 * 59) + ($maintainUserName == null ? 43 : $maintainUserName.hashCode()); } public String toString() { return "MaintainPlanVO(id=" + getId() + ", code=" + getCode() + ", deviceId=" + getDeviceId() + ", deviceCode=" + getDeviceCode() + ", deviceName=" + getDeviceName() + ", deviceTypeId=" + getDeviceTypeId() + ", deviceTypeName=" + getDeviceTypeName() + ", projectId=" + getProjectId() + ", projectName=" + getProjectName() + ", projectCode=" + getProjectCode() + ", maintainDate=" + getMaintainDate() + ", preWarningDays=" + getPreWarningDays() + ", planStatus=" + getPlanStatus() + ", planStatusName=" + getPlanStatusName() + ", isAuto=" + getIsAuto() + ", isAutoName=" + getIsAutoName() + ", intervalTime=" + getIntervalTime() + ", preMaintainTime=" + getPreMaintainTime() + ", maintainPlanItemVoList=" + getMaintainPlanItemVoList() + ", machineModel=" + getMachineModel() + ", remark=" + getRemark() + ", maintainNature=" + getMaintainNature() + ", maintainNatureName=" + getMaintainNatureName() + ", maintainUserId=" + getMaintainUserId() + ", maintainUserName=" + getMaintainUserName() + ")"; } public Long getId() { return this.id; } 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 String getPlanStatusName() { return this.planStatusName; } public Integer getIsAuto() { return this.isAuto; } public String getIsAutoName() { return this.isAutoName; } public Integer getIntervalTime() { return this.intervalTime; } public LocalDateTime getPreMaintainTime() { return this.preMaintainTime; } public List getMaintainPlanItemVoList() { return this.maintainPlanItemVoList; } public String getMachineModel() { return this.machineModel; } public String getRemark() { return this.remark; } public Integer getMaintainNature() { return this.maintainNature; } public String getMaintainNatureName() { return this.maintainNatureName; } public Long getMaintainUserId() { return this.maintainUserId; } public String getMaintainUserName() { return this.maintainUserName; } }