package com.qianwen.smartman.modules.smis.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.datatype.jsr310.deser.LocalDateTimeDeserializer; import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.time.LocalDateTime; import java.util.List; import javax.validation.constraints.Min; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import com.qianwen.smartman.common.constant.DateConstant; import com.qianwen.smartman.modules.notify.dto.NotifyBusinessSendDTO; public class MaintainPlanAddVO implements Serializable { private static final long serialVersionUID = 1; @NotNull(message = "机器Id不能为空") @ApiModelProperty(value = "机器Id", dataType = "java.lang.String") private Long deviceId; @ApiModelProperty("编码") private String code; @NotBlank(message = "机器编码不能为空") @ApiModelProperty("机器编码") private String deviceCode; @NotBlank(message = "机器名称不能为空") @ApiModelProperty("机器名称") private String deviceName; @ApiModelProperty(value = "机器类型Id", dataType = "java.lang.String") private Long deviceTypeId; @ApiModelProperty("机器类型名称") private String deviceTypeName; @NotBlank(message = "保养项目Id不能为空") @ApiModelProperty("保养项目名称") private String projectName; @NotBlank(message = "保养项目编码不能为空") @ApiModelProperty("保养项目编码") private String projectCode; @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonSerialize(using = LocalDateTimeSerializer.class) @ApiModelProperty("保养日期") @NotNull(message = "保养日期不能为空") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") private LocalDateTime maintainDate; @NotNull(message = "保养预警最小值为1") @Min(serialVersionUID) @ApiModelProperty("保养预警提示") private Integer preWarningDays; @NotNull(message = "保养项目保养项不能为空") @ApiModelProperty("保养项目保养项") private List maintainItemList; @ApiModelProperty("机器规格") private String machineModel; @ApiModelProperty("备注") private String remark; @ApiModelProperty("保养性质") private Integer maintainNature; @ApiModelProperty(value = "保养负责人id", dataType = "java.lang.String") private Long maintainUserId; @ApiModelProperty("保养负责人名称") private String maintainUserName; @ApiModelProperty("业务消息发送") NotifyBusinessSendDTO notifyBusinessSend; public void setDeviceId(final Long deviceId) { this.deviceId = deviceId; } 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 setDeviceTypeId(final Long deviceTypeId) { this.deviceTypeId = deviceTypeId; } public void setDeviceTypeName(final String deviceTypeName) { this.deviceTypeName = deviceTypeName; } 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 setMaintainItemList(final List maintainItemList) { this.maintainItemList = maintainItemList; } 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 setMaintainUserId(final Long maintainUserId) { this.maintainUserId = maintainUserId; } public void setMaintainUserName(final String maintainUserName) { this.maintainUserName = maintainUserName; } public void setNotifyBusinessSend(final NotifyBusinessSendDTO notifyBusinessSend) { this.notifyBusinessSend = notifyBusinessSend; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof MaintainPlanAddVO) { MaintainPlanAddVO other = (MaintainPlanAddVO) o; if (other.canEqual(this)) { 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$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$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$maintainItemList = getMaintainItemList(); Object other$maintainItemList = other.getMaintainItemList(); if (this$maintainItemList == null) { if (other$maintainItemList != null) { return false; } } else if (!this$maintainItemList.equals(other$maintainItemList)) { 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(); if (this$maintainUserName == null) { if (other$maintainUserName != null) { return false; } } else if (!this$maintainUserName.equals(other$maintainUserName)) { return false; } Object this$notifyBusinessSend = getNotifyBusinessSend(); Object other$notifyBusinessSend = other.getNotifyBusinessSend(); return this$notifyBusinessSend == null ? other$notifyBusinessSend == null : this$notifyBusinessSend.equals(other$notifyBusinessSend); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof MaintainPlanAddVO; } public int hashCode() { Object $deviceId = getDeviceId(); int result = (1 * 59) + ($deviceId == null ? 43 : $deviceId.hashCode()); Object $deviceTypeId = getDeviceTypeId(); int result2 = (result * 59) + ($deviceTypeId == null ? 43 : $deviceTypeId.hashCode()); Object $preWarningDays = getPreWarningDays(); int result3 = (result2 * 59) + ($preWarningDays == null ? 43 : $preWarningDays.hashCode()); Object $maintainNature = getMaintainNature(); int result4 = (result3 * 59) + ($maintainNature == null ? 43 : $maintainNature.hashCode()); Object $maintainUserId = getMaintainUserId(); int result5 = (result4 * 59) + ($maintainUserId == null ? 43 : $maintainUserId.hashCode()); Object $code = getCode(); int result6 = (result5 * 59) + ($code == null ? 43 : $code.hashCode()); Object $deviceCode = getDeviceCode(); int result7 = (result6 * 59) + ($deviceCode == null ? 43 : $deviceCode.hashCode()); Object $deviceName = getDeviceName(); int result8 = (result7 * 59) + ($deviceName == null ? 43 : $deviceName.hashCode()); Object $deviceTypeName = getDeviceTypeName(); int result9 = (result8 * 59) + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode()); Object $projectName = getProjectName(); int result10 = (result9 * 59) + ($projectName == null ? 43 : $projectName.hashCode()); Object $projectCode = getProjectCode(); int result11 = (result10 * 59) + ($projectCode == null ? 43 : $projectCode.hashCode()); Object $maintainDate = getMaintainDate(); int result12 = (result11 * 59) + ($maintainDate == null ? 43 : $maintainDate.hashCode()); Object $maintainItemList = getMaintainItemList(); int result13 = (result12 * 59) + ($maintainItemList == null ? 43 : $maintainItemList.hashCode()); Object $machineModel = getMachineModel(); int result14 = (result13 * 59) + ($machineModel == null ? 43 : $machineModel.hashCode()); Object $remark = getRemark(); int result15 = (result14 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $maintainUserName = getMaintainUserName(); int result16 = (result15 * 59) + ($maintainUserName == null ? 43 : $maintainUserName.hashCode()); Object $notifyBusinessSend = getNotifyBusinessSend(); return (result16 * 59) + ($notifyBusinessSend == null ? 43 : $notifyBusinessSend.hashCode()); } public String toString() { return "MaintainPlanAddVO(deviceId=" + getDeviceId() + ", code=" + getCode() + ", deviceCode=" + getDeviceCode() + ", deviceName=" + getDeviceName() + ", deviceTypeId=" + getDeviceTypeId() + ", deviceTypeName=" + getDeviceTypeName() + ", projectName=" + getProjectName() + ", projectCode=" + getProjectCode() + ", maintainDate=" + getMaintainDate() + ", preWarningDays=" + getPreWarningDays() + ", maintainItemList=" + getMaintainItemList() + ", machineModel=" + getMachineModel() + ", remark=" + getRemark() + ", maintainNature=" + getMaintainNature() + ", maintainUserId=" + getMaintainUserId() + ", maintainUserName=" + getMaintainUserName() + ", notifyBusinessSend=" + getNotifyBusinessSend() + ")"; } public Long getDeviceId() { return this.deviceId; } public String getCode() { return this.code; } 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 String getProjectName() { return this.projectName; } public String getProjectCode() { return this.projectCode; } public LocalDateTime getMaintainDate() { return this.maintainDate; } public Integer getPreWarningDays() { return this.preWarningDays; } public List getMaintainItemList() { return this.maintainItemList; } 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; } public NotifyBusinessSendDTO getNotifyBusinessSend() { return this.notifyBusinessSend; } }