CouponUserEnableView.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.Coupon;
  3. import com.cyksj.model.entity.CouponUser;
  4. import com.ejlchina.searcher.bean.DbField;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import lombok.Getter;
  7. import lombok.Setter;
  8. import java.math.BigDecimal;
  9. import java.util.Date;
  10. /*
  11. *项目名: netflix
  12. *文件名: CouponUserEnableView
  13. *创建者: JavaZou
  14. *创建时间:2022/11/21 10:33
  15. */
  16. @Getter
  17. @Setter
  18. @SearchBean(tables = "coupon_user cu left join coupon_active ca on ca.id = cu.coupon_active_id" +
  19. " left join coupon c on c.id = cu.coupon_id",
  20. where = "order by cu.id desc")
  21. public class CouponUserEnableView {
  22. @DbField("cu.id")
  23. private Long id;
  24. /**
  25. * 获取渠道
  26. */
  27. @DbField("cu.channel")
  28. private CouponUser.Channel channel;
  29. /**
  30. * 优惠券使用状态
  31. */
  32. @DbField("cu.status")
  33. private CouponUser.Status couponUserStatus;
  34. /**
  35. * 用户id
  36. */
  37. @DbField("cu.user_id")
  38. private Long userId;
  39. /**
  40. * 优惠券id
  41. */
  42. @DbField("c.id")
  43. private Long couponId;
  44. /**
  45. * 优惠券发放id
  46. */
  47. @DbField("ca.id")
  48. private Long couponActiveId;
  49. /**
  50. * 优惠券名称
  51. */
  52. @DbField("ca.name")
  53. private String name;
  54. /**
  55. * 优惠券平台类型
  56. */
  57. @DbField("ca.goods_type")
  58. private Coupon.GoodsType goodsType;
  59. /**
  60. * 优惠券类型
  61. */
  62. @DbField("ca.type")
  63. private Coupon.Type type;
  64. /**
  65. * 抵扣金额
  66. */
  67. @DbField("ca.reduce_money")
  68. private BigDecimal reduceMoney;
  69. /**
  70. * 折扣
  71. */
  72. @DbField("ca.discount")
  73. private BigDecimal discount;
  74. /**
  75. * 平台规格集合
  76. */
  77. @DbField("c.goods_sku_ids")
  78. private String goodsSkuIds;
  79. /**
  80. * 是否是有效时间
  81. */
  82. @DbField("ca.is_valid_time")
  83. private Boolean isValidTime;
  84. /**
  85. * 起始有效时间
  86. */
  87. @DbField("ca.valid_start_time")
  88. private Date validStartTime;
  89. /**
  90. * 领取有效天数
  91. */
  92. @DbField("ca.valid_days")
  93. private Integer validDays;
  94. /**
  95. * 截止有效时间
  96. */
  97. @DbField("ca.valid_end_time")
  98. private Date validEndTime;
  99. /**
  100. * 是否可在续费时使用
  101. */
  102. @DbField("ca.is_renew")
  103. private Boolean isRenew;
  104. /**
  105. * 发放优惠券状态(默认启用)
  106. */
  107. @DbField("ca.status")
  108. private Boolean status;
  109. /**
  110. * 有效状态(默认有效)
  111. */
  112. @DbField("ca.expiry_status")
  113. private Boolean expiryStatus;
  114. @DbField("ca.created_time")
  115. private Date createdTime;
  116. }