OrderCoupon.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.kym.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.kym.entity.BaseEntity;
  4. import lombok.Getter;
  5. import lombok.Setter;
  6. import lombok.experimental.Accessors;
  7. /**
  8. * <p>
  9. * 订单优惠券关联表
  10. * </p>
  11. *
  12. * @author skyline
  13. * @since 2024-06-02
  14. */
  15. @Getter
  16. @Setter
  17. @TableName("t_order_coupon")
  18. @Accessors(chain = true)
  19. public class OrderCoupon extends BaseEntity {
  20. private static final long serialVersionUID = 1L;
  21. public static final int STATUS_未知 = 0;
  22. public static final int STATUS_使用成功 = 1;
  23. public static final int STATUS_使用失败 = 2;
  24. /**
  25. * 优惠券id
  26. */
  27. private Long couponId;
  28. /**
  29. * 主活动id
  30. */
  31. private Long activityId;
  32. /**
  33. * 用户优惠券id
  34. */
  35. private Long userCouponId;
  36. /**
  37. * 用户id
  38. */
  39. private Long userId;
  40. /**
  41. * 充电订单号
  42. */
  43. private String startChargeSeq;
  44. /**
  45. * 券种:Discount折扣券、FullDiscount满减券
  46. */
  47. private String couponType;
  48. /**
  49. * 折扣:100代表无折扣,75代表75折;折扣金额(分)
  50. */
  51. private Integer discount;
  52. /**
  53. * 总优惠金额(分)
  54. */
  55. private Integer discountAmount;
  56. /**
  57. * 状态
  58. */
  59. private Integer status;
  60. }