CouponRecommendView.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. package com.cyksj.model.views;
  2. import com.cyksj.model.entity.Coupon;
  3. import com.ejlchina.searcher.bean.DbField;
  4. import com.ejlchina.searcher.bean.DbIgnore;
  5. import com.ejlchina.searcher.bean.SearchBean;
  6. import com.fasterxml.jackson.annotation.JsonIgnore;
  7. import lombok.Getter;
  8. import lombok.Setter;
  9. import java.math.BigDecimal;
  10. import java.util.Date;
  11. import java.util.List;
  12. /*
  13. *项目名: netflix
  14. *文件名: CouponRecommendView
  15. *创建者: JavaZou
  16. *创建时间:2022/11/18 10:07
  17. */
  18. @Setter
  19. @Getter
  20. @SearchBean(tables = "coupon_recommend cr left join coupon c on c.id = cr.coupon_id left join coupon_classification cc on cc.id = c.classification_id",
  21. where = "cr.deleted is true and c.deleted is true")
  22. public class CouponRecommendView {
  23. @DbField("cr.id")
  24. private Long id;
  25. @DbField("cr.coupon_id")
  26. private Long couponId;
  27. /**
  28. * 优惠券名称
  29. */
  30. @DbField("c.name")
  31. private String name;
  32. @DbField("cc.id")
  33. private Long classificationId;
  34. @DbField("cc.name")
  35. private String couponClassificationName;
  36. /**
  37. * 优惠券平台类型
  38. */
  39. @DbField("c.goods_type")
  40. private Coupon.GoodsType goodsType;
  41. /**
  42. * 优惠券类型
  43. */
  44. @DbField("c.type")
  45. private Coupon.Type type;
  46. /**
  47. * 可用满减卷金额条件
  48. */
  49. @DbField("c.reduce_condition")
  50. private BigDecimal reduceCondition;
  51. /**
  52. * 抵扣金额
  53. */
  54. @DbField("c.reduce_money")
  55. private BigDecimal reduceMoney;
  56. /**
  57. * 折扣
  58. */
  59. @DbField("c.discount")
  60. private BigDecimal discount;
  61. /**
  62. * 平台规格集合
  63. */
  64. @DbField("c.goods_sku_ids")
  65. private String goodsSkuIds;
  66. @DbIgnore
  67. private String goodsSkuStr;
  68. @DbIgnore
  69. private List<GoodsDonSkuView> skuViewList;
  70. /**
  71. * 领取人范围
  72. */
  73. @DbField("c.scope")
  74. private Coupon.Scope scope;
  75. /**
  76. * 是否是有效时间
  77. */
  78. @DbField("c.is_valid_time")
  79. private Boolean isValidTime;
  80. /**
  81. * 起始有效时间
  82. */
  83. @DbField("c.valid_start_time")
  84. private Date validStartTime;
  85. /**
  86. * 截止有效时间
  87. */
  88. @DbField("c.valid_end_time")
  89. private Date validEndTime;
  90. /**
  91. * 用户领取后起始有效时间
  92. */
  93. @DbField("c.valid_start_time")
  94. @JsonIgnore
  95. private Date userValidStartTime;
  96. /**
  97. * 用户领取后截止有效时间
  98. */
  99. @DbField("c.valid_end_time")
  100. @JsonIgnore
  101. private Date userValidEndTime;
  102. /**
  103. * 领取有效天数
  104. */
  105. @DbField("c.valid_days")
  106. private Integer validDays;
  107. /**
  108. * 是否可在续费时使用
  109. */
  110. @DbField("c.is_renew")
  111. private Boolean isRenew;
  112. /**
  113. * 推荐状态
  114. */
  115. @DbField("cr.status")
  116. private Boolean status;
  117. /**
  118. * 推荐时间
  119. */
  120. @DbField("cr.created_time")
  121. private Date createdTime;
  122. /**
  123. * 推荐领取人数
  124. */
  125. @DbIgnore
  126. private Integer receiptNum;
  127. /**
  128. * 使用人数
  129. */
  130. @DbIgnore
  131. private Integer usedNum;
  132. @DbIgnore
  133. private CouponActiveView.CouponStatus couponStatus;
  134. }