package com.linghu.model.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import java.io.Serializable;
|
import java.time.LocalDateTime;
|
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName order
|
*/
|
@TableName(value = "orders")
|
@Data
|
public class Orders implements Serializable {
|
/**
|
* 订单id,格式:日期-数量(202506100001)
|
*/
|
@TableId
|
private String order_id;
|
|
/**
|
* 客户名称
|
*/
|
private String client_name;
|
|
/**
|
* 状态 1-待处理,2-执行中,3-已完成
|
*/
|
private Integer status;
|
|
/**
|
* 0-未删除 1-已删除
|
*/
|
private Integer del_flag;
|
|
/**
|
* 关键词数量
|
*/
|
private Integer keyword_num;
|
|
/**
|
* 提交人
|
*/
|
private String create_by;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private LocalDateTime create_time;
|
|
/**
|
*
|
*/
|
private String update_by;
|
|
/**
|
*
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private LocalDateTime update_time;
|
|
@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;
|
}
|
Orders other = (Orders) that;
|
return (this.getOrder_id() == null ? other.getOrder_id() == null
|
: this.getOrder_id().equals(other.getOrder_id()))
|
&& (this.getClient_name() == null ? other.getClient_name() == null
|
: this.getClient_name().equals(other.getClient_name()))
|
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
&& (this.getDel_flag() == null ? other.getDel_flag() == null
|
: this.getDel_flag().equals(other.getDel_flag()))
|
&& (this.getCreate_by() == null ? other.getCreate_by() == null
|
: this.getCreate_by().equals(other.getCreate_by()))
|
&& (this.getCreate_time() == null ? other.getCreate_time() == null
|
: this.getCreate_time().equals(other.getCreate_time()))
|
&& (this.getUpdate_by() == null ? other.getUpdate_by() == null
|
: this.getUpdate_by().equals(other.getUpdate_by()))
|
&& (this.getUpdate_time() == null ? other.getUpdate_time() == null
|
: this.getUpdate_time().equals(other.getUpdate_time()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getOrder_id() == null) ? 0 : getOrder_id().hashCode());
|
result = prime * result + ((getClient_name() == null) ? 0 : getClient_name().hashCode());
|
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
result = prime * result + ((getDel_flag() == null) ? 0 : getDel_flag().hashCode());
|
result = prime * result + ((getCreate_by() == null) ? 0 : getCreate_by().hashCode());
|
result = prime * result + ((getCreate_time() == null) ? 0 : getCreate_time().hashCode());
|
result = prime * result + ((getUpdate_by() == null) ? 0 : getUpdate_by().hashCode());
|
result = prime * result + ((getUpdate_time() == null) ? 0 : getUpdate_time().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", order_id=").append(order_id);
|
sb.append(", client_name=").append(client_name);
|
sb.append(", status=").append(status);
|
sb.append(", del_flag=").append(del_flag);
|
sb.append(", create_by=").append(create_by);
|
sb.append(", create_time=").append(create_time);
|
sb.append(", update_by=").append(update_by);
|
sb.append(", update_time=").append(update_time);
|
sb.append(", serialVersionUID=").append(serialVersionUID);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|