package com.qianwen.smartman.modules.smis.vo;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModelProperty;
|
|
public class MachineUpdateVO extends MachineSubmitVO {
|
private static final long serialVersionUID = -954547779778830391L;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("主键")
|
private Long id;
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
@Override // org.springblade.modules.cps.vo.MachineSubmitVO
|
public String toString() {
|
return "MachineUpdateVO(id=" + getId() + ")";
|
}
|
|
@Override // org.springblade.modules.cps.vo.MachineSubmitVO
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MachineUpdateVO) {
|
MachineUpdateVO other = (MachineUpdateVO) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
Object this$id = getId();
|
Object other$id = other.getId();
|
return this$id == null ? other$id == null : this$id.equals(other$id);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
@Override // org.springblade.modules.cps.vo.MachineSubmitVO
|
protected boolean canEqual(final Object other) {
|
return other instanceof MachineUpdateVO;
|
}
|
|
@Override // org.springblade.modules.cps.vo.MachineSubmitVO
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $id = getId();
|
return (result * 59) + ($id == null ? 43 : $id.hashCode());
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
}
|