package com.linghu.model.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import java.io.Serializable;
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName keyword
|
*/
|
@TableName(value ="keyword")
|
@Data
|
public class Keyword implements Serializable {
|
/**
|
* 关键词
|
*/
|
@TableId(type = IdType.AUTO)
|
private Integer keyword_id;
|
|
/**
|
* 关联订单id
|
*/
|
private String order_id;
|
|
/**
|
* 关键词名称
|
*/
|
private String keyword_name;
|
|
/**
|
* 采集轮数
|
*/
|
private Integer num;
|
|
/**
|
* 任务唯一标识符
|
*/
|
private String task_id;
|
|
/**
|
* 任务状态(notSubmitted:待处理;submitted:已提交 ; )
|
*/
|
private String status;
|
|
@TableField(exist = false)
|
private static final long serialVersionUID = 1L;
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
Keyword other = (Keyword) that;
|
return (this.getKeyword_id() == null ? other.getKeyword_id() == null : this.getKeyword_id().equals(other.getKeyword_id()))
|
&& (this.getOrder_id() == null ? other.getOrder_id() == null : this.getOrder_id().equals(other.getOrder_id()))
|
&& (this.getKeyword_name() == null ? other.getKeyword_name() == null : this.getKeyword_name().equals(other.getKeyword_name()))
|
&& (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
|
&& (this.getTask_id() == null ? other.getTask_id() == null : this.getTask_id().equals(other.getTask_id()))
|
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getKeyword_id() == null) ? 0 : getKeyword_id().hashCode());
|
result = prime * result + ((getOrder_id() == null) ? 0 : getOrder_id().hashCode());
|
result = prime * result + ((getKeyword_name() == null) ? 0 : getKeyword_name().hashCode());
|
result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
|
result = prime * result + ((getTask_id() == null) ? 0 : getTask_id().hashCode());
|
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", keyword_id=").append(keyword_id);
|
sb.append(", order_id=").append(order_id);
|
sb.append(", keyword_name=").append(keyword_name);
|
sb.append(", num=").append(num);
|
sb.append(", task_id=").append(task_id);
|
sb.append(", status=").append(status);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|