package com.qianwen.smartman.modules.cps.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.time.LocalDateTime; import java.util.List; import com.qianwen.smartman.common.constant.DateConstant; import com.qianwen.smartman.common.constant.MachineConstant; import com.qianwen.smartman.modules.cps.dto.DeviceSimpleDTO; import com.qianwen.smartman.modules.cps.entity.MaintainProject; import com.qianwen.smartman.modules.cps.entity.MaintainProjectItem; import com.qianwen.smartman.modules.notify.dto.NotifyBusinessSendDTO; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/MaintainPlanBatchVO.class */ public class MaintainPlanBatchVO { @ApiModelProperty(name = MachineConstant.TYPE_MACHINE) private DeviceSimpleDTO deviceSimpleDTO; @ApiModelProperty("保养项目") private MaintainProject maintainProject; @ApiModelProperty("保养项目保养项") private List maintainProjectItemList; @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonSerialize(using = LocalDateTimeSerializer.class) @ApiModelProperty("上次保养时间") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") private LocalDateTime lastTime; @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; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/MaintainPlanBatchVO$MaintainPlanBatchVOBuilder.class */ public static class MaintainPlanBatchVOBuilder { private DeviceSimpleDTO deviceSimpleDTO; private MaintainProject maintainProject; private List maintainProjectItemList; private LocalDateTime lastTime; private String remark; private Integer maintainNature; private Long maintainUserId; private String maintainUserName; private NotifyBusinessSendDTO notifyBusinessSend; MaintainPlanBatchVOBuilder() { } public MaintainPlanBatchVOBuilder deviceSimpleDTO(final DeviceSimpleDTO deviceSimpleDTO) { this.deviceSimpleDTO = deviceSimpleDTO; return this; } public MaintainPlanBatchVOBuilder maintainProject(final MaintainProject maintainProject) { this.maintainProject = maintainProject; return this; } public MaintainPlanBatchVOBuilder maintainProjectItemList(final List maintainProjectItemList) { this.maintainProjectItemList = maintainProjectItemList; return this; } @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") public MaintainPlanBatchVOBuilder lastTime(final LocalDateTime lastTime) { this.lastTime = lastTime; return this; } public MaintainPlanBatchVOBuilder remark(final String remark) { this.remark = remark; return this; } public MaintainPlanBatchVOBuilder maintainNature(final Integer maintainNature) { this.maintainNature = maintainNature; return this; } public MaintainPlanBatchVOBuilder maintainUserId(final Long maintainUserId) { this.maintainUserId = maintainUserId; return this; } public MaintainPlanBatchVOBuilder maintainUserName(final String maintainUserName) { this.maintainUserName = maintainUserName; return this; } public MaintainPlanBatchVOBuilder notifyBusinessSend(final NotifyBusinessSendDTO notifyBusinessSend) { this.notifyBusinessSend = notifyBusinessSend; return this; } public MaintainPlanBatchVO build() { return new MaintainPlanBatchVO(this.deviceSimpleDTO, this.maintainProject, this.maintainProjectItemList, this.lastTime, this.remark, this.maintainNature, this.maintainUserId, this.maintainUserName, this.notifyBusinessSend); } public String toString() { return "MaintainPlanBatchVO.MaintainPlanBatchVOBuilder(deviceSimpleDTO=" + this.deviceSimpleDTO + ", maintainProject=" + this.maintainProject + ", maintainProjectItemList=" + this.maintainProjectItemList + ", lastTime=" + this.lastTime + ", remark=" + this.remark + ", maintainNature=" + this.maintainNature + ", maintainUserId=" + this.maintainUserId + ", maintainUserName=" + this.maintainUserName + ", notifyBusinessSend=" + this.notifyBusinessSend + ")"; } } public void setDeviceSimpleDTO(final DeviceSimpleDTO deviceSimpleDTO) { this.deviceSimpleDTO = deviceSimpleDTO; } public void setMaintainProject(final MaintainProject maintainProject) { this.maintainProject = maintainProject; } public void setMaintainProjectItemList(final List maintainProjectItemList) { this.maintainProjectItemList = maintainProjectItemList; } @JsonDeserialize(using = LocalDateTimeDeserializer.class) @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8") public void setLastTime(final LocalDateTime lastTime) { this.lastTime = lastTime; } 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 MaintainPlanBatchVO) { MaintainPlanBatchVO other = (MaintainPlanBatchVO) o; if (other.canEqual(this)) { 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$deviceSimpleDTO = getDeviceSimpleDTO(); Object other$deviceSimpleDTO = other.getDeviceSimpleDTO(); if (this$deviceSimpleDTO == null) { if (other$deviceSimpleDTO != null) { return false; } } else if (!this$deviceSimpleDTO.equals(other$deviceSimpleDTO)) { return false; } Object this$maintainProject = getMaintainProject(); Object other$maintainProject = other.getMaintainProject(); if (this$maintainProject == null) { if (other$maintainProject != null) { return false; } } else if (!this$maintainProject.equals(other$maintainProject)) { return false; } Object this$maintainProjectItemList = getMaintainProjectItemList(); Object other$maintainProjectItemList = other.getMaintainProjectItemList(); if (this$maintainProjectItemList == null) { if (other$maintainProjectItemList != null) { return false; } } else if (!this$maintainProjectItemList.equals(other$maintainProjectItemList)) { return false; } Object this$lastTime = getLastTime(); Object other$lastTime = other.getLastTime(); if (this$lastTime == null) { if (other$lastTime != null) { return false; } } else if (!this$lastTime.equals(other$lastTime)) { 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 MaintainPlanBatchVO; } public int hashCode() { Object $maintainNature = getMaintainNature(); int result = (1 * 59) + ($maintainNature == null ? 43 : $maintainNature.hashCode()); Object $maintainUserId = getMaintainUserId(); int result2 = (result * 59) + ($maintainUserId == null ? 43 : $maintainUserId.hashCode()); Object $deviceSimpleDTO = getDeviceSimpleDTO(); int result3 = (result2 * 59) + ($deviceSimpleDTO == null ? 43 : $deviceSimpleDTO.hashCode()); Object $maintainProject = getMaintainProject(); int result4 = (result3 * 59) + ($maintainProject == null ? 43 : $maintainProject.hashCode()); Object $maintainProjectItemList = getMaintainProjectItemList(); int result5 = (result4 * 59) + ($maintainProjectItemList == null ? 43 : $maintainProjectItemList.hashCode()); Object $lastTime = getLastTime(); int result6 = (result5 * 59) + ($lastTime == null ? 43 : $lastTime.hashCode()); Object $remark = getRemark(); int result7 = (result6 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $maintainUserName = getMaintainUserName(); int result8 = (result7 * 59) + ($maintainUserName == null ? 43 : $maintainUserName.hashCode()); Object $notifyBusinessSend = getNotifyBusinessSend(); return (result8 * 59) + ($notifyBusinessSend == null ? 43 : $notifyBusinessSend.hashCode()); } public String toString() { return "MaintainPlanBatchVO(deviceSimpleDTO=" + getDeviceSimpleDTO() + ", maintainProject=" + getMaintainProject() + ", maintainProjectItemList=" + getMaintainProjectItemList() + ", lastTime=" + getLastTime() + ", remark=" + getRemark() + ", maintainNature=" + getMaintainNature() + ", maintainUserId=" + getMaintainUserId() + ", maintainUserName=" + getMaintainUserName() + ", notifyBusinessSend=" + getNotifyBusinessSend() + ")"; } MaintainPlanBatchVO(final DeviceSimpleDTO deviceSimpleDTO, final MaintainProject maintainProject, final List maintainProjectItemList, final LocalDateTime lastTime, final String remark, final Integer maintainNature, final Long maintainUserId, final String maintainUserName, final NotifyBusinessSendDTO notifyBusinessSend) { this.deviceSimpleDTO = deviceSimpleDTO; this.maintainProject = maintainProject; this.maintainProjectItemList = maintainProjectItemList; this.lastTime = lastTime; this.remark = remark; this.maintainNature = maintainNature; this.maintainUserId = maintainUserId; this.maintainUserName = maintainUserName; this.notifyBusinessSend = notifyBusinessSend; } public static MaintainPlanBatchVOBuilder builder() { return new MaintainPlanBatchVOBuilder(); } public DeviceSimpleDTO getDeviceSimpleDTO() { return this.deviceSimpleDTO; } public MaintainProject getMaintainProject() { return this.maintainProject; } public List getMaintainProjectItemList() { return this.maintainProjectItemList; } public LocalDateTime getLastTime() { return this.lastTime; } 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; } }