GiftCardOrder.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. package com.ylx.giftCard.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.ylx.common.core.domain.BaseEntity;
  5. import lombok.Data;
  6. import lombok.EqualsAndHashCode;
  7. import java.math.BigDecimal;
  8. /**
  9. * 购物卡订单表
  10. */
  11. @EqualsAndHashCode(callSuper = true)
  12. @Data
  13. public class GiftCardOrder extends BaseEntity {
  14. private static final long serialVersionUID = -5890473596508557032L;
  15. /**
  16. * 订单主键ID
  17. */
  18. @TableId(value = "id", type = IdType.AUTO)
  19. private Long id;
  20. /**
  21. * 订单编号(如 GC202601041400001)
  22. */
  23. private String orderNo;
  24. /**
  25. * 关联的购物卡ID
  26. */
  27. private Long giftCardId;
  28. /**
  29. * 购物卡名称(冗余,防卡被删后信息丢失)
  30. */
  31. private String giftCardName;
  32. /**
  33. * 购物卡面值(冗余)
  34. */
  35. private BigDecimal giftCardAmount;
  36. /**
  37. * 购买数量
  38. */
  39. private Integer purchaseQuantity;
  40. /**
  41. * 下单时的提成比例(冗余,防卡后续修改影响历史订单)
  42. */
  43. private BigDecimal commissionRate;
  44. /**
  45. * 用户ID(如 uid_xxx)
  46. */
  47. private String userId;
  48. /**
  49. * 用户姓名/昵称
  50. */
  51. private String userName;
  52. /**
  53. * 用户手机号
  54. */
  55. private String userPhone;
  56. /**
  57. * 商户ID
  58. */
  59. private String merchantId;
  60. /**
  61. * 商户姓名
  62. */
  63. private String merchantNickName;
  64. /**
  65. * 商户名称
  66. */
  67. private String merchantName;
  68. /**
  69. * 商户收款账号
  70. */
  71. private String merchantAccount;
  72. /**
  73. * 用户实付金额(= gift_card_amount)
  74. */
  75. private BigDecimal payAmount;
  76. /**
  77. * 商户实际提成金额(= pay_amount * commission_rate / 100)
  78. */
  79. private BigDecimal commissionAmount;
  80. /**
  81. * 订单状态:0=待支付,1=已支付,2=已退款,3=已过期
  82. */
  83. private Integer status;
  84. }