DistributeWaitingSendPoints.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.cyksj.model.entity;
  2. import lombok.Getter;
  3. import lombok.Setter;
  4. import java.math.BigDecimal;
  5. import java.util.Date;
  6. /*
  7. *项目名: netflix
  8. *文件名: DistributeWaitingSendPoints
  9. *创建者: JavaZou
  10. *创建时间:2022/11/15 12:11
  11. */
  12. @Getter
  13. @Setter
  14. public class DistributeWaitingSendPoints extends BaseEntity{
  15. /**
  16. * 分销订单产生用户id
  17. */
  18. private Long userId;
  19. /**
  20. * 积分待发人
  21. */
  22. private Long sharedId;
  23. private Long orderId;
  24. private BigDecimal points;
  25. /**
  26. * 额外返利积分(目前只针对普通推广)
  27. */
  28. private BigDecimal extraRebate;
  29. /**
  30. * 倍数
  31. */
  32. private BigDecimal extraMultiple;
  33. /**
  34. * 原本积分奖励
  35. */
  36. private BigDecimal oriPoints;
  37. private BigDecimal refundPoints;
  38. /**
  39. * 退款状态不再发
  40. */
  41. private Status sendStatus;
  42. private Integer version;
  43. private Date sendTime;
  44. /**
  45. * 针对实物 是否已发货
  46. * true 已发货 默认true
  47. */
  48. private Boolean isDelivery;
  49. /**
  50. * 分销提成平摊折扣金额
  51. * 是否参与渠道分销规则
  52. */
  53. private Boolean isRule;
  54. /**
  55. * 平摊积分
  56. */
  57. private BigDecimal deductPoints;
  58. /**
  59. * 获取提成比例
  60. */
  61. private Integer rate;
  62. /**
  63. * 是否特殊设备分销订单
  64. */
  65. private Boolean isSpecialEp;
  66. @Getter
  67. public enum Status{
  68. close("分销订单关闭,积分奖励不分发"),
  69. success("积分发送成功"),
  70. waiting("积分等待发送"),
  71. not_exist("用户不存在,导致发送失败"),
  72. ;
  73. String desc;
  74. Status(String desc) {
  75. this.desc = desc;
  76. }
  77. }
  78. }