File was renamed from src/main/java/com/linghu/model/entity/Order.java |
| | |
| | | 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.util.Date; |
| | | import java.time.LocalDateTime; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * |
| | | * @TableName order |
| | | */ |
| | | @TableName(value ="order") |
| | | @TableName(value = "orders") |
| | | @Data |
| | | public class Order implements Serializable { |
| | | public class Orders implements Serializable { |
| | | /** |
| | | * 订单id,格式:日期-数量(202506100001) |
| | | */ |
| | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | private Date create_time; |
| | | @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS", timezone = "GMT+8") |
| | | private LocalDateTime create_time; |
| | | |
| | | /** |
| | | * |
| | |
| | | /** |
| | | * |
| | | */ |
| | | private Date update_time; |
| | | @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSSSS", timezone = "GMT+8") |
| | | private LocalDateTime update_time; |
| | | |
| | | @TableField(exist = false) |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | if (getClass() != that.getClass()) { |
| | | return false; |
| | | } |
| | | Order other = (Order) 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())); |
| | | 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 |