OrderDetails.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package com.zhentao.pojo;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import java.io.Serializable;
  7. import java.math.BigDecimal;
  8. import java.util.Date;
  9. import lombok.Data;
  10. /**
  11. * 订单详细信息表,记录每个订单的具体购买项目
  12. * @TableName order_details
  13. */
  14. @TableName(value ="order_details")
  15. @Data
  16. public class OrderDetails implements Serializable {
  17. /**
  18. * 订单明细 ID
  19. */
  20. @TableId(type = IdType.AUTO)
  21. private Long detailId;
  22. /**
  23. * 关联订单 ID
  24. */
  25. private Long orderId;
  26. /**
  27. * 订单明细项目名称
  28. */
  29. private String itemName;
  30. /**
  31. * 数量
  32. */
  33. private Integer quantity;
  34. /**
  35. * 单价
  36. */
  37. private BigDecimal price;
  38. /**
  39. * 订单明细创建时间
  40. */
  41. private Date createdAt;
  42. /**
  43. * 订单明细更新时间
  44. */
  45. private Date updatedAt;
  46. @TableField(exist = false)
  47. private static final long serialVersionUID = 1L;
  48. }