package iet.ustb.sf.domain; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import java.util.Date; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; /** * * @author hyy * @TableName mbgk_target_data */ @TableName(value ="mbgk_target_data") @Data @Builder @AllArgsConstructor @NoArgsConstructor public class TargetData { /** * 指标ID */ @TableField(value = "target_id") private String targetId; /** * X轴显示 */ @TableField(value = "x_show") private String xShow; /** * 主键 */ private String id; /** * 日期 */ @TableField(value = "set_date") private Date setDate; /** * 周期 */ @TableField(value = "cycle") private String cycle; /** * 创建时间 */ @TableField(value = "create_time") private Date createTime; /** * 更新时间 */ @TableField(value = "update_time") private Date updateTime; /** * 值 */ @TableField(value = "val") private Double val; /** * 指标周期 */ @TableField(value = "target_cycle") private String targetCycle; @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } TargetData other = (TargetData) that; return (this.getTargetId() == null ? other.getTargetId() == null : this.getTargetId().equals(other.getTargetId())) && (this.getXShow() == null ? other.getXShow() == null : this.getXShow().equals(other.getXShow())) && (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) && (this.getSetDate() == null ? other.getSetDate() == null : this.getSetDate().equals(other.getSetDate())) && (this.getCycle() == null ? other.getCycle() == null : this.getCycle().equals(other.getCycle())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getVal() == null ? other.getVal() == null : this.getVal().equals(other.getVal())) && (this.getTargetCycle() == null ? other.getTargetCycle() == null : this.getTargetCycle().equals(other.getTargetCycle())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getTargetId() == null) ? 0 : getTargetId().hashCode()); result = prime * result + ((getXShow() == null) ? 0 : getXShow().hashCode()); result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); result = prime * result + ((getSetDate() == null) ? 0 : getSetDate().hashCode()); result = prime * result + ((getCycle() == null) ? 0 : getCycle().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getVal() == null) ? 0 : getVal().hashCode()); result = prime * result + ((getTargetCycle() == null) ? 0 : getTargetCycle().hashCode()); return result; } @Override public String toString() { return getClass().getSimpleName() + " [" + "Hash = " + hashCode() + ", targetId=" + targetId + ", xShow=" + xShow + ", id=" + id + ", setDate=" + setDate + ", cycle=" + cycle + ", createTime=" + createTime + ", updateTime=" + updateTime + ", val=" + val + ", targetCycle=" + targetCycle + "]"; } }