package com.qianwen.mdc.collect.service.feedback;
|
|
import java.util.ArrayList;
|
import java.util.Date;
|
import java.util.List;
|
|
import com.qianwen.mdc.collect.entity.iotdb.DeviceState;
|
import com.qianwen.mdc.collect.entity.mgr.WorkstationWcsFeedbackDetail;
|
|
|
public class ImmediateFeedbackAnalyseResult {
|
private Long feedbackId;
|
private Long workstationId;
|
private Date resetStartTime;
|
private WorkstationWcsFeedbackDetail feedbackDetail;
|
private Boolean needProcess = Boolean.TRUE;
|
private Boolean resetState = Boolean.FALSE;
|
private List<DeviceState> effectiveStateList = new ArrayList<>();
|
|
public void setFeedbackId(final Long feedbackId) {
|
this.feedbackId = feedbackId;
|
}
|
|
public void setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
}
|
|
public void setNeedProcess(final Boolean needProcess) {
|
this.needProcess = needProcess;
|
}
|
|
public void setResetState(final Boolean resetState) {
|
this.resetState = resetState;
|
}
|
|
public void setResetStartTime(final Date resetStartTime) {
|
this.resetStartTime = resetStartTime;
|
}
|
|
public void setEffectiveStateList(final List<DeviceState> effectiveStateList) {
|
this.effectiveStateList = effectiveStateList;
|
}
|
|
public void setFeedbackDetail(final WorkstationWcsFeedbackDetail feedbackDetail) {
|
this.feedbackDetail = feedbackDetail;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ImmediateFeedbackAnalyseResult) {
|
ImmediateFeedbackAnalyseResult other = (ImmediateFeedbackAnalyseResult) o;
|
if (other.canEqual(this)) {
|
Object this$feedbackId = getFeedbackId();
|
Object other$feedbackId = other.getFeedbackId();
|
if (this$feedbackId == null) {
|
if (other$feedbackId != null) {
|
return false;
|
}
|
} else if (!this$feedbackId.equals(other$feedbackId)) {
|
return false;
|
}
|
Object this$workstationId = getWorkstationId();
|
Object other$workstationId = other.getWorkstationId();
|
if (this$workstationId == null) {
|
if (other$workstationId != null) {
|
return false;
|
}
|
} else if (!this$workstationId.equals(other$workstationId)) {
|
return false;
|
}
|
Object this$needProcess = getNeedProcess();
|
Object other$needProcess = other.getNeedProcess();
|
if (this$needProcess == null) {
|
if (other$needProcess != null) {
|
return false;
|
}
|
} else if (!this$needProcess.equals(other$needProcess)) {
|
return false;
|
}
|
Object this$resetState = getResetState();
|
Object other$resetState = other.getResetState();
|
if (this$resetState == null) {
|
if (other$resetState != null) {
|
return false;
|
}
|
} else if (!this$resetState.equals(other$resetState)) {
|
return false;
|
}
|
Object this$resetStartTime = getResetStartTime();
|
Object other$resetStartTime = other.getResetStartTime();
|
if (this$resetStartTime == null) {
|
if (other$resetStartTime != null) {
|
return false;
|
}
|
} else if (!this$resetStartTime.equals(other$resetStartTime)) {
|
return false;
|
}
|
Object this$effectiveStateList = getEffectiveStateList();
|
Object other$effectiveStateList = other.getEffectiveStateList();
|
if (this$effectiveStateList == null) {
|
if (other$effectiveStateList != null) {
|
return false;
|
}
|
} else if (!this$effectiveStateList.equals(other$effectiveStateList)) {
|
return false;
|
}
|
Object this$feedbackDetail = getFeedbackDetail();
|
Object other$feedbackDetail = other.getFeedbackDetail();
|
return this$feedbackDetail == null ? other$feedbackDetail == null : this$feedbackDetail.equals(other$feedbackDetail);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ImmediateFeedbackAnalyseResult;
|
}
|
|
public int hashCode() {
|
Object $feedbackId = getFeedbackId();
|
int result = (1 * 59) + ($feedbackId == null ? 43 : $feedbackId.hashCode());
|
Object $workstationId = getWorkstationId();
|
int result2 = (result * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $needProcess = getNeedProcess();
|
int result3 = (result2 * 59) + ($needProcess == null ? 43 : $needProcess.hashCode());
|
Object $resetState = getResetState();
|
int result4 = (result3 * 59) + ($resetState == null ? 43 : $resetState.hashCode());
|
Object $resetStartTime = getResetStartTime();
|
int result5 = (result4 * 59) + ($resetStartTime == null ? 43 : $resetStartTime.hashCode());
|
Object $effectiveStateList = getEffectiveStateList();
|
int result6 = (result5 * 59) + ($effectiveStateList == null ? 43 : $effectiveStateList.hashCode());
|
Object $feedbackDetail = getFeedbackDetail();
|
return (result6 * 59) + ($feedbackDetail == null ? 43 : $feedbackDetail.hashCode());
|
}
|
|
public String toString() {
|
return "ImmediateFeedbackAnalyseResult(feedbackId=" + getFeedbackId() + ", workstationId=" + getWorkstationId() + ", needProcess=" + getNeedProcess() + ", resetState=" + getResetState() + ", resetStartTime=" + getResetStartTime() + ", effectiveStateList=" + getEffectiveStateList() + ", feedbackDetail=" + getFeedbackDetail() + ")";
|
}
|
|
public Long getFeedbackId() {
|
return this.feedbackId;
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
|
public Boolean getNeedProcess() {
|
return this.needProcess;
|
}
|
|
public Boolean getResetState() {
|
return this.resetState;
|
}
|
|
public Date getResetStartTime() {
|
return this.resetStartTime;
|
}
|
|
public List<DeviceState> getEffectiveStateList() {
|
return this.effectiveStateList;
|
}
|
|
public WorkstationWcsFeedbackDetail getFeedbackDetail() {
|
return this.feedbackDetail;
|
}
|
}
|