package com.qianwen.smartman.modules.mdc.vo.excel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.time.LocalDate; import java.util.List; import javax.validation.constraints.NotNull; import com.qianwen.smartman.modules.mdc.enums.StatisticalMethodEnum; public class TimeUsedExcelVO implements Serializable { private static final long serialVersionUID = -1171830696195824158L; @ApiModelProperty("工位id") private List ids; @ApiModelProperty("开始时间") private LocalDate startTime; @ApiModelProperty("结束时间") private LocalDate endTime; @NotNull(message = "{mdc.timeUsed.StatisticalMethodEnum.notNull}") @ApiModelProperty("统计模式: SHIFT - 班次; DAY - 日; WEEK - 周; MONTH - 月") private StatisticalMethodEnum enums; public void setIds(final List ids) { this.ids = ids; } public void setStartTime(final LocalDate startTime) { this.startTime = startTime; } public void setEndTime(final LocalDate endTime) { this.endTime = endTime; } public void setEnums(final StatisticalMethodEnum enums) { this.enums = enums; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof TimeUsedExcelVO) { TimeUsedExcelVO other = (TimeUsedExcelVO) o; if (other.canEqual(this)) { Object this$ids = getIds(); Object other$ids = other.getIds(); if (this$ids == null) { if (other$ids != null) { return false; } } else if (!this$ids.equals(other$ids)) { return false; } Object this$startTime = getStartTime(); Object other$startTime = other.getStartTime(); if (this$startTime == null) { if (other$startTime != null) { return false; } } else if (!this$startTime.equals(other$startTime)) { return false; } Object this$endTime = getEndTime(); Object other$endTime = other.getEndTime(); if (this$endTime == null) { if (other$endTime != null) { return false; } } else if (!this$endTime.equals(other$endTime)) { return false; } Object this$enums = getEnums(); Object other$enums = other.getEnums(); return this$enums == null ? other$enums == null : this$enums.equals(other$enums); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof TimeUsedExcelVO; } public int hashCode() { Object $ids = getIds(); int result = (1 * 59) + ($ids == null ? 43 : $ids.hashCode()); Object $startTime = getStartTime(); int result2 = (result * 59) + ($startTime == null ? 43 : $startTime.hashCode()); Object $endTime = getEndTime(); int result3 = (result2 * 59) + ($endTime == null ? 43 : $endTime.hashCode()); Object $enums = getEnums(); return (result3 * 59) + ($enums == null ? 43 : $enums.hashCode()); } public String toString() { return "TimeUsedExcelVO(ids=" + getIds() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", enums=" + getEnums() + ")"; } public List getIds() { return this.ids; } public LocalDate getStartTime() { return this.startTime; } public LocalDate getEndTime() { return this.endTime; } public StatisticalMethodEnum getEnums() { return this.enums; } }