DistributeWaitingSendPoints.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. private BigDecimal refundPoints;
  26. /**
  27. * 退款状态不再发
  28. */
  29. private Status sendStatus;
  30. private Integer version;
  31. private Date sendTime;
  32. /**
  33. * 针对实物 是否已发货
  34. * true 已发货 默认true
  35. */
  36. private Boolean isDelivery;
  37. /**
  38. * 分销提成平摊折扣金额
  39. * 是否参与渠道分销规则
  40. */
  41. private Boolean isRule;
  42. /**
  43. * 平摊积分
  44. */
  45. private BigDecimal deductPoints;
  46. /**
  47. * 获取提成比例
  48. */
  49. private Integer rate;
  50. /**
  51. * 是否特殊设备分销订单
  52. */
  53. private Boolean isSpecialEp;
  54. @Getter
  55. public enum Status{
  56. close("分销订单关闭,积分奖励不分发"),
  57. success("积分发送成功"),
  58. waiting("积分等待发送"),
  59. not_exist("用户不存在,导致发送失败"),
  60. ;
  61. String desc;
  62. Status(String desc) {
  63. this.desc = desc;
  64. }
  65. }
  66. }