|
|
@@ -0,0 +1,100 @@
|
|
|
+package space.anyi.seataOrderMicroService.domain;
|
|
|
+
|
|
|
+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 order
|
|
|
+ */
|
|
|
+@TableName(value ="order")
|
|
|
+@Data
|
|
|
+public class Order implements Serializable {
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @TableId(type = IdType.AUTO)
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Long userId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Long productId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer nums;
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private Integer money;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 0:创建中;1:已完结
|
|
|
+ */
|
|
|
+ private Integer 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;
|
|
|
+ }
|
|
|
+ Order other = (Order) that;
|
|
|
+ return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
+ && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
|
|
|
+ && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
|
|
|
+ && (this.getNums() == null ? other.getNums() == null : this.getNums().equals(other.getNums()))
|
|
|
+ && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
|
|
|
+ && (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 + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
+ result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
|
|
|
+ result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
|
|
|
+ result = prime * result + ((getNums() == null) ? 0 : getNums().hashCode());
|
|
|
+ result = prime * result + ((getMoney() == null) ? 0 : getMoney().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(", id=").append(id);
|
|
|
+ sb.append(", userId=").append(userId);
|
|
|
+ sb.append(", productId=").append(productId);
|
|
|
+ sb.append(", nums=").append(nums);
|
|
|
+ sb.append(", money=").append(money);
|
|
|
+ sb.append(", status=").append(status);
|
|
|
+ sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
+ sb.append("]");
|
|
|
+ return sb.toString();
|
|
|
+ }
|
|
|
+}
|